asp session variable

S

sanju

Hi all, i am a asp programmer and i want to use the session variable
to store values. I have one asp page including 5 textboxes and 25
radio buttons. My problem is when i submitting the information at the
first time and after filling half of the form if i closed the form
then next time when i again want to fill that form, it should select
that controls which i selected at the first time.
I dont know how to do it.
plz kindly help me,

Thanks in advance.
 
T

Thomas A. Rowe

You have to post the form to an ASP page that stores the values from the form., then if the form is
reopen during the same browser session, you would then call the saved session variables.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
S

Stefan B Rusynko

PS
Only if the form fields have the selected value as the session variable as in
<%=Session("Yourvaluename")%>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| You have to post the form to an ASP page that stores the values from the form., then if the form is
| reopen during the same browser session, you would then call the saved session variables.
|
| --
| ==============================================
| Thomas A. Rowe
| Microsoft MVP - FrontPage
|
| http://www.Ecom-Data.com
| ==============================================
|
|
| | > Hi all, i am a asp programmer and i want to use the session variable
| > to store values. I have one asp page including 5 textboxes and 25
| > radio buttons. My problem is when i submitting the information at the
| > first time and after filling half of the form if i closed the form
| > then next time when i again want to fill that form, it should select
| > that controls which i selected at the first time.
| > I dont know how to do it.
| > plz kindly help me,
| >
| > Thanks in advance.
| >
|
|
 
M

md Webs Unlimited

What is the model for the processing of the pages input:

1. Same page process the input and redirects.
2. A different page process the input then displays

The first is the more common as it allows for validation of the input at the
server with feed back to the visitor if validation fails.

<%

' See if the form should be processed.
if uCase(Request.ServerVariables("HTTP_METHOD")) <> "POST" then
' Validate input
'
'
'Store in session vars
session("var1") = request.form("var1")
session("var2") = request.form("var2")
else
'Returning to the page
<input type="text" value="<%=session("var1")%>" name="var1" >
<input type="text" value="<%=session("var2")%>" name="var2" >


--
Mike - FrontPage MVP '97 - '02
Expression Tools & Addin
http://www.j-moves.com
http://www.panemanager.com
FrontPage Tools & Addin
http://www.jbots.com
E-Commerce
http://www.candypress.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top