H
HolaGoogle
hi all,
can you please tell me what i should do to avoid session timeout when
displaying my database info in my asp form
(DisplayUserDatabase.asp)???
** actualy it does load and display the database randomly....otherwise
it's always runs into a session time out....
**Also when i save new account info (You'll notice that i've been
asked to put a save button near each record...so, it's not one global
save it's by record), i'd like to be able to save only the changed
record and nothing else. The way i do it now works, but i've to reload
to whole page and get the same timeout error!!! is there anyway to
change this??? After saving my DB info i redirect the user to the
former form (DisplayUserDatabase.asp). Maybe it's because i'm using 2
forms: one for displaying DB info(DisplayUserDatabase.asp) and another
one for saving new info(SaveUserAccount.asp)...but otherwise i don't
see how i can make this work without my 2 forms???
Heres' my code:
<form Method="Post" name="DisplayUserDatabase">
<%
Do While Not objDisplayRS.EOF
Response.Write "<form name=""SaveUserAccount"" method=""Post"">"
'----Retreive the information and displays it in a table
Response.Write("<TR VALIGN=""TOP"">")
Response.Write ("<TD><input type = ""text"" name = ""IDUser""
size=""3""value = """ & objDisplayRS("ID") & """>")
Response.Write(" <TD><input type=""text"" name=""NewName""
size=""20""value=""" &objDisplayRS("UserName") &""">")
Response.Write(" <TD><input type=""text"" name=""NewPswd""
size=""20""value=""" &objDisplayRS("Pswd") &""">")
Response.Write("<BR></TD>")
'Action to perform update or delete account
Response.Write(" <TD><input type=""submit""value="" Save""
onClick= ""this.form.action='
SaveUserAccount.asp?ActionToDo=UpdateAccount'; "">")
Response.Write(" <TD><input type=""submit""value="" Delete""
onClick= ""this.form.action='
SaveUserAccount.asp?ActionToDo=DeleteAccount'; "">")
Response.Write("</TR>")
Response.Write "</form>"
objDisplayRS.MoveNext
Loop
Response.Write "</TABLE>" & vbCrLf
End If
' Close DB objects and free variables
objDisplayRS.Close
Set objDisplayRS = Nothing
and in my updateUserAccount.asp, after the update call i just redirect
the user to the main form like this:
Response.Redirect "DisplayUserDatabase.asp"
Thanks Guys!
can you please tell me what i should do to avoid session timeout when
displaying my database info in my asp form
(DisplayUserDatabase.asp)???
** actualy it does load and display the database randomly....otherwise
it's always runs into a session time out....
**Also when i save new account info (You'll notice that i've been
asked to put a save button near each record...so, it's not one global
save it's by record), i'd like to be able to save only the changed
record and nothing else. The way i do it now works, but i've to reload
to whole page and get the same timeout error!!! is there anyway to
change this??? After saving my DB info i redirect the user to the
former form (DisplayUserDatabase.asp). Maybe it's because i'm using 2
forms: one for displaying DB info(DisplayUserDatabase.asp) and another
one for saving new info(SaveUserAccount.asp)...but otherwise i don't
see how i can make this work without my 2 forms???
Heres' my code:
<form Method="Post" name="DisplayUserDatabase">
<%
Do While Not objDisplayRS.EOF
Response.Write "<form name=""SaveUserAccount"" method=""Post"">"
'----Retreive the information and displays it in a table
Response.Write("<TR VALIGN=""TOP"">")
Response.Write ("<TD><input type = ""text"" name = ""IDUser""
size=""3""value = """ & objDisplayRS("ID") & """>")
Response.Write(" <TD><input type=""text"" name=""NewName""
size=""20""value=""" &objDisplayRS("UserName") &""">")
Response.Write(" <TD><input type=""text"" name=""NewPswd""
size=""20""value=""" &objDisplayRS("Pswd") &""">")
Response.Write("<BR></TD>")
'Action to perform update or delete account
Response.Write(" <TD><input type=""submit""value="" Save""
onClick= ""this.form.action='
SaveUserAccount.asp?ActionToDo=UpdateAccount'; "">")
Response.Write(" <TD><input type=""submit""value="" Delete""
onClick= ""this.form.action='
SaveUserAccount.asp?ActionToDo=DeleteAccount'; "">")
Response.Write("</TR>")
Response.Write "</form>"
objDisplayRS.MoveNext
Loop
Response.Write "</TABLE>" & vbCrLf
End If
' Close DB objects and free variables
objDisplayRS.Close
Set objDisplayRS = Nothing
and in my updateUserAccount.asp, after the update call i just redirect
the user to the main form like this:
Response.Redirect "DisplayUserDatabase.asp"
Thanks Guys!