Go Back   CP Web Hosting - reseller hosting > Server Scripting > ASP
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2007, 08:26 AM
Senior Member
 
Join Date: Mar 2007
Posts: 193
Default making variables available to more than one page

I have been using the post method, but that only works for one other page...how do I go about making variables available to more than one page?
Reply With Quote
  #2 (permalink)  
Old 06-26-2007, 08:31 AM
Senior Member
 
Join Date: Apr 2007
Posts: 311
Default

Quote:
Originally Posted by stevon View Post
I have been using the post method, but that only works for one other page...how do I go about making variables available to more than one page?

U can not do it in ASP.NET but If you're using ASP 3.0 there is way to do this is to use session variables, which is not too effective in my opinion.
Reply With Quote
  #3 (permalink)  
Old 06-26-2007, 08:32 AM
Senior Member
 
Join Date: Mar 2007
Posts: 274
Default

for session variables - use the request.form method like this:

session("your_session_variable") = request.form("your_form_variable")

then whenever you want to reference that session variable throughout the remainder of the session, just call it like any other... for example

response.write session("your_session_variable")
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT. The time now is 07:16 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0