| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
passing variables across multiple pages in asp
Hi Everyone!
I've stored the value of a textbox into a session variable. I need to access this variable from several pages but i can only access it from the next page. Is there any way I can access it from more than one page: My code from the second(and consequent)pages is as follows: If Request.Form("txtPostCode")="" Then Session("postcode")="No Postcode Supplied" Else Session("postcode")=Request.Form("txtPostCode") End If Response.write(Session("postcode")) The variable is displayed on only the second page but the "no postcode supplied" text appears on all the others. Is there a way of passing a variables across multiple pages?? Any help would be appreciated! Thanks! |
![]() |
| Viewing: Tutorialized Forums > Web Design & Development > ASP > passing variables across multiple pages in asp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|