Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing the variable \

Status
Not open for further replies.

Norman55

Programmer
Apr 27, 2006
48
GB
could anybody help me
i can not pass the variable \ between pages ?
 
there are numerous ways to do it.

you can search the forums (and google) before posting questions when there is a very similar question two posts below this one.

you can assign your variable to a hidden form element on the first page and use request.form() on the second page

you can append it to the querystring in the first page and retrieve it using the request.querystring() on the second page.

Kind of like this:

________________________________
Top 10 reasons to procrastinate:
1)
 
1. What's the variable
2. How are you passing it?
3. What do you want to do with it?
4. I can't drive to my destination, can you help?

TIP: trying googling the answer before posting, you'll find that more times than not someone else somewhere has had the same request and posted an answer online.
----
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javascript enabled browsers
 
I'm very new to ASP myself and I've found some things elegantly simple. I'm using a session variable to pass info from one page to another. I started using a cache variable, but came across situations where the cache would cross the 'boundaries' of multiple users. (one user's cached information would show in another user's session)

Basically, on my calling page:
Session["USEREMAIL"] = this.txtEmail.Text.Trim().ToUpper();

And if I want to compare or use that on subsequent pages, i just compare the Session["USEREMAIL"].ToString():

I know there's some added overhead with session variables, but like I said, I'm new to all this. I'd like to get the application working first, and then work on improving performance.

I hope this helps.
 
DanEvansJr,

That looks like ASP.NET, this forum is mainly for classic ASP (vbScript)



--------
GOOGLE is a great resource to find answers to questions like "how do i..."

If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
 
Ooops. Sorry. I was searching for help on something else and came across this thread.

I was actually excited that I was able to help for a change instead of being the helpee :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top