ASP

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentASP

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old March 29th, 2006, 05:00 PM
Yazz Yazz is offline
Contributing User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 1 Yazz New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: < 1 sec
Reputation Power: 0
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!

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentASP > passing variables across multiple pages in asp


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap