PC Review


Reply
Thread Tools Rate Thread

asp session variable

 
 
sanju
Guest
Posts: n/a
 
      13th May 2007
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.

 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      13th May 2007
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
==============================================


"sanju" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>



 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      14th May 2007
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!" (-;
_____________________________________________


"Thomas A. Rowe" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| 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
| ==============================================
|
|
| "sanju" <(E-Mail Removed)> wrote in message
| news:(E-Mail Removed)...
| > 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.
| >
|
|


 
Reply With Quote
 
md Webs Unlimited
Guest
Posts: n/a
 
      14th May 2007
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

"sanju" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a Session variable that identifies the session. AAaron123 Microsoft ASP .NET 14 11th Sep 2009 08:17 AM
System Session Variable VS. Own-declared 'Session' Variable chowchho Microsoft ASP .NET 4 28th Mar 2008 02:07 PM
SqlConnection Object in Application Variable OR Session Variable OR open/close pratham Microsoft ASP .NET 3 31st Aug 2006 08:26 PM
Shared Variable Vs. Session Variable John Kraft Microsoft ASP .NET 2 21st Oct 2003 08:56 PM
Datalist - how (if) to use a sub variable or session variable in the footer? KathyB Microsoft ASP .NET 1 17th Jul 2003 02:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.