swornavidhya_m 0 Newbie Poster

Hai,

I've provided with jitbit software to configure a forum newly for our existing website, and the forum must look like jitbit forum. My boss asked to create a sample standalone forum, which looks like jitbit forum.

I've created the virtual directory called forum in my local computer's iis, and configured it with iis of my system. I'm able to get my virtual directory run in my browser. The thing is that, when doing any operation like registering an user newly / logged in as admin with given password and when signout operation is triggered.. I am receiving the following error :

[B]Operation must use an updateable query[/B].

[B]Description[/B]: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

[B]Exception Details[/B]: System.Data.OleDb.OleDbException: Operation must use an updateable query.

[B]Source Error[/B]:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

[B]Stack Trace[/B]:
[OleDbException (0x80004005): Operation must use an updateable query.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1002416
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +255
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +188
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +161
   System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +113
   aspnetforum.Utils.User.UpdateLastLogonDate(Int32 userId) +208
   aspnetforum.ForumPage.OnInit(EventArgs e) +1686
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378


[B]Version Information[/B]: 
Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

I don't know how to proceed further. My task is to create …

swornavidhya_m 0 Newbie Poster

I have to do an module program which downloads pdf files in the client side. Currently, when users download the file, the url of the downloaded file is viewed by the user.

Modification instructed:
1. In the page where the file download is requested, the url of the downloaded file is viewed in the status bar of that web page. Modification is that the status bar should not display the url of the downloaded file. -- This had been corrected and the code has modified accordingly. It is done correctly only for the first page. Blinks how to process this for the second page..

2. Currently, the call for the download page is given along with the filename of the user request. The filename is passed as the querystring. Modification needed is that the url should get rewritten as "~/download.aspx" instead of "~/download.aspx?".

I came across using "urlrewriter". But don't know how to implement since i feel little confused with the code examples in net.

I'm placing my code for ur assistance. I'm not using webconfig file also.
old try pdf.aspx
****************

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="old try pdf.aspx.cs" Inherits="old_try_pdf" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Try PDF - Download</title>
    <style>
        .link_text
        {
	        font-family:Tahoma;
	        font-size:10px;
	        color:#1d5296;
	        text-decoration:none;
        }

        .link_text A
        {
	        font-family:Tahoma;
	        font-size:11px;
	        color:#1d5296;
	        text-decoration:underline;	
        }

        .link_text A:hover
        {
	        color:#ff000c;
	        text-decoration:underline;
        }

        .link_text A:active
        {
	        color:#ff000c;
	        text-decoration:underline;
        }
        
        .bullets
        {
	        background-image:url(Bullet.gif); …
swornavidhya_m 0 Newbie Poster

I'm creating a tabbed page. I'm stuck with setting the images to the tab headers.

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Try Tabbed Page Example</title>

<script type="text/javascript" >

// ----- Auxiliary -------------------------------------------------------------

function tabview_aux(TabViewId, id)
{
  var TabView = document.getElementById(TabViewId);

  // ----- Tabs -----

  var Tabs = TabView.firstChild;
  while (Tabs.className != "Tabs" ) Tabs = Tabs.nextSibling;

  var Tab = Tabs.firstChild;
  var i   = 0;

  do
  {
    if (Tab.tagName == "A")
    {
      i++;
      Tab.href      = "javascript:tabview_switch('"+TabViewId+"', "+i+");";
      Tab.className = (i == id) ? "Active" : "";
      Tab.blur();
    }
  }
  while (Tab = Tab.nextSibling);

  // ----- Pages -----

  var Pages = TabView.firstChild;
  while (Pages.className != 'Pages') Pages = Pages.nextSibling;

  var Page = Pages.firstChild;
  var i    = 0;

  do
  {
    if (Page.className == 'Page')
    {
      i++;
      if (Pages.offsetHeight) Page.style.height = (Pages.offsetHeight-2)+"px";
      Page.style.overflow = "auto";
      Page.style.display  = (i == id) ? 'block' : 'none';
    }
  }
  while (Page = Page.nextSibling);
}

// ----- Functions -------------------------------------------------------------

function tabview_switch(TabViewId, id) { tabview_aux(TabViewId, id); }

function tabview_initialize(TabViewId) { tabview_aux(TabViewId,  1); }


</script>

<style>

div.TabView div.Tabs {
  height: 36px; /* 24px; */
  overflow: hidden;
}


div.TabView div.Tabs a {
  float: left;
  display: block;
  width:  148px;/* 90px; */
  text-align: center;
  height:   36px;   /* 24px; */
  line-height: 30px; /*  To position the text of a inside the menu box */
  vertical-align: middle;
  background: url('images/tab1-h.jpg') no-repeat; /* url('tabs.png') no-repeat -2px -1px; */ 
  text-decoration: none;
  font-family: "Times New Roman", Serif;
  font-weight: 900;
  font-size: 13px;
  color: #fff; /* #000080; */
  margin-right:1px;
}


div.TabView div.Tabs …
swornavidhya_m 0 Newbie Poster

How to set background image for iframe? If set, it is not working in IE. But works with Mozilla and Google Chrome. How to fix bug in IE for displaying background image in iframe.

M.Sworna Vidhya

swornavidhya_m 0 Newbie Poster

I've created a seperate html files for navigation, content and footer. I want to club those files. All the navigation, content, footer files resides in the same directory where the index.html file resides. I want to include the above mentioned html files inside the index.html. I have tried using the following in index.html file
<!-- #include virtual="topbanner.html" -->

I also tried using the asp code which also fails. I tried with asp by changing all the html file extensions as .asp. Then i tried to place the following asp code in index.asp file as
<!-- #include file="topbanner.asp" -->


Kindly solve my problem. This is an urgent thing to do for me.

M.Sworna Vidhya

swornavidhya_m 0 Newbie Poster

I want to send mail from an asp page. The asp page is called from a html page. The sending mail using CDOSYS and CDO is not working properly. When i call the asp page from html page, the script for sending mail in the asp page is getting displayed while running rather than working of the process which i had mentioned in the script to work.

The attached image file "sendmail.JPG" shows the runtime problem, when the asp file is being called from html file.


HTML Code

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

</head>

<body>

<form action=sendmail.asp method="POST">
  <p><input type="text" name="T1" size="20"></p>
  <p><input type="submit" value="Submit" name="B1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input type="reset" value="Reset" name="B2"></p>
</form>

</body>

</html>

ASP File "sendmail.asp" code
*****************************

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<%

function sendmail()
{

Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="rksvidhya@yahoo.com"
myMail.To="swornavidhya.mahadevan@gmail.com"
myMail.TextBody="This is a message."

        myMail.Configuration.Fields.Item _
		("http://schemas.microsoft.com/cdo/configuration/smtsperver") = "smtp.gmail.com";
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465;
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2;
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate")= 1;
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = "true";  
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/sendusername") = "swornavidhya.mahadevan@gmail.com";
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "************"; // My gmail password.
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing

response.write("<script>alert('Process Successful.')</script>");

}
%>
</head>

<body>

</body>

</html>

Kindly help me at the earliest.

M.Sworna Vidhya

swornavidhya_m 0 Newbie Poster

I want to provide sitemap with scrolling of images. I'm handling the method for scrolling image as in "Text and Image Crawler" of Dynamicdrive.com (http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm). I've just changed the images and added a click event for images. The crawler.js is the same as in the "Text and Image Crawler" of Dynamicdrive.com.

In my application thing is for services, there is submenus. When the services image is clicked.. the marque movement should be paused until other than services (home, about_us, careers, contact_us) is clicked and the images of the submenu should get displayed. When other than services is clicked, the display of the submenu images must be in hide condition. IS it possible to do so. If so guide and help me.

Currently, I'd hide the submenu images by setting the property 'display:none;' for the div-id in styles.css. And when clicked i've coded to display the submenu images with javascript. But not working.

My html code is:
*****************
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0" />
<meta name="ProgId" content="FrontPage.Editor.Document" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>My Project</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
 
<script type="text/javascript" src="js/scroll-image.js"></script>  
<script type="text/javascript" src="js/crawler.js"></script>

<!-- [if gte IE 7]><!-->
<link type="text/css" rel="stylesheet" href="css/style-ie6.css" />
<!--<![endif]-->
</head>

<body style="line-height: 150%">
<div>
    		
    		<div style=" background:#E3E1E2; width: 766px; margin: 0px auto">
    			<p class="body_text_heading" align=left><br>&nbsp;&nbsp;<br>&nbsp;Sitemap<br>&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;<br>&nbsp;</p>
        		<div style=" background:#E3E1E2; width: 730px; margin: 0px auto;">     			

                      <div class="marquee" id="image_scroll">
                           <img src="images/site_home.jpg" width="300" height="300" alt="Home" id="1_img" …
swornavidhya_m 0 Newbie Poster

Hai

I am trying scrolling of images as like (http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm). I do want to set border for the images with border property as "2px solid #000" and i do want gap between the images so that the horizontal gap value is 20px.
I tried even with image border propoerty and image style properties both border and padding as 0 20px. Both not working properly. The style padding property is working fine in firefox and google chrome. But it is working in IE 6.0

I'll paste my code for your reference.
********************************************************************************
HTML CODE IS
********************************************************************************

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script type="text/javascript" src="crawler.js">
/*
Text and/or Image Crawler Script ©2009 John Davenport Scheuer
as first seen in http://www.dynamicdrive.com/forums/ username: jscheuer1
This Notice Must Remain for Legal Use
*/
</script>
</head>

<body>
<div class="marquee" id="mycrawler">
Those confounded friars dully buzz that faltering jay. An appraising tongue acutely causes our courageous hogs. Their fitting submarines deftly break your approving improvisations. Her downcast taxonomies actually box up those disgusted turtles.
</div>

<script type="text/javascript">
marqueeInit({
	uniqueid: 'mycrawler',
	style: {
		'padding': '5px',
		'width': '150px',
		'background': 'lightyellow',
		'border': '1px solid #CC3300'
	},
	inc: 8, //speed - pixel increment for each iteration of this marquee's movement
	mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
	moveatleast: 4,
	neutral: 150,
	savedirection: true
});
</script>

<div class="marquee" id="mycrawler2">
 <img src="http://i40.tinypic.com/9tlic8.jpg" style="padding:0 20px;" onclick="javascript:alert('9tlic8.jpg')";/> …
swornavidhya_m 0 Newbie Poster

Statement:
Connection with server takes a long time and provides "No message either it is timeout or someother thing other than time out". The state of the mouse during that time will be in "cursor: wait (an hourglass)" state.

This problem is being faced occationationly, but now a days it become frequent.

Description:
The website is working properly as per the design flow.

We are having 3 types of users - one is for data entering people, one for maintaining database, one is endusers.

An enduser who is the customer of the website, should login with the main page of the website.

The enduser who is either the people entering data or the people maintaining database, should have to give login through the different page exists in the website. These two users comes under the catagory "admin".

According with the user as data maintaining or the user for entering data who have logged in, the co-ordinate page get opened for viewing & editing the customer details of the website for the user of data maintaining and the page through which the datas uploaded in the server, opened when the user is the people of entering data.

The problem facing is that when the user of the catagory "admin" logged-in, the coordinate pages is not getting opened according with the type of user logged-in. There is no error message occurs. After entering the username, password and when submit button is clicked, the …

swornavidhya_m 0 Newbie Poster

Actually, the datas stored in notepad or excel. Then those stored values are copied to "updateprice.mdb". The values from "updateprice.mdb" are transferred to the "text_data" table in server with the method called for updating the values to the server. In this method only i'm facing the problem.

The "Text_Id" field is the unique one and won't have any duplicates in any case. Also, the data team members who are in-charge for inserting datas to server, said that the server updation by inserting is done properly when the record count<=3. If the recordcount exceeds 3, then the error is showing as:

*********************************************************************

Error Showing as
~~~~~~~~~~~~~~~~~
1 record(s) converted
File Name:DTRinggit081110Ringgit Extends Downtrend Against Greenback
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint 'PK_text_data'. Cannot insert duplicate key in object 'text_data'.

/data_maintain/News.asp, line 86
*********************************************************************

I'm blinking and stuck with datas getting updated to the server. Kindly help me.

M.Sworna Vidhya

swornavidhya_m 0 Newbie Poster

Hai,

Problem we are Facing Currently: Records getting inserted as only one during the process of updating the server.

Previously, all the given records get inserted into the database table during the updation process.

"updateprice" is the .mdb exists locally in the same folder where the calling file for updating records exists. It contains record data to be uploaded to the server database. It acts as an temporary storage database.

The records to be updated to the server are either in an notepad or excel. Whatever be the count in records, previously it was updated fine. "rsTextData.Update" is line 86. I'm blinking where it fails.The error which we're facing and the code is given below for the assistance.

Error Showing as

1 record(s) converted
File Name:DTRinggit081110Ringgit Extends Downtrend Against Greenback 
Microsoft OLE DB Provider for ODBC Drivers error '80004005' 

[Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint 'PK_text_data'. Cannot insert duplicate key in object 'text_data'. 

/data_maintain/News.asp, line 86

Code Part

<table width="100%" cellspacing="0" cellpadding="0" align="center">

<tr><td height="25" class="mtext" background="../images/top_bar.jpg" align="center"><font color="#FFFFFF"><b>ADMINISTRATION</b></font></td></tr>
<tr><td height="10"></td></tr>
<tr><td height="20"></td></tr>

<tr><td width="100%" class="mtext">
<p style="margin-left: 10; margin-right: 3">
<center>
    <b> Uploading  Text Data in progress...<br>
	<br>Please wait..</b>
</center>	
	
	<%
  	set myconn=server.createobject("ADODB.connection")
  	
  	myconn.open "updateprice"
  	myconn.CommandTimeout=0
  	set rsData = Server.CreateObject ("ADODB.Recordset")

	NewsCodeSelectSql="Select * from text_data"
	set rsData=myconn.execute(NewsCodeselectsql)
	code = 0 
	intRecCount = 0
	set myconn1=server.createobject("ADODB.connection")
  	myconn1.open "DSN=commodities;uid=fbspl07;pwd=07#web&;"
	myconn1.commandtimeout=0
	Response.Write("1  record(s) converted<br>")
	do while not rsdata.eof
	Set cmdTemp=Server.CreateObject("ADODB.Command")
	cmdTemp.CommandType=2
		sql="select * from text_Data where 1<>1"
		
		set rsTextData=Server.CreateObject("ADODB.Recordset")
		
		rstextdata.locktype=adLockOptimistic
		
		rsTextData.Open "select …
swornavidhya_m 0 Newbie Poster

Hai,
I'm having doubt why the code written for ul is like this in CSS style sheet when creating drop down menus..

display:inline;
    display/**/:block;
    float:none;
    float/**/:left;

It is enough if we mention display and float for once. Why it is used twice with a comment in between?

M.Sworna Vidhya