Forum Moderators: open

Message Too Old, No Replies

Easy, Quick Question on ASP

Hey, I'm a newbie...

         

knighty

12:30 pm on Nov 29, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK I have a framest which splits the page in two - one is nav bar with bookmarks to other frame.

When clicking on a link it refreshes the page causing the the other page to refresh which means that the info from the database dissapears and i have to re-enter the account info (you type in an account no. and it brings up the info)

Is there a way round this like passing a variable to the page? is so how?

Or is there another simpler way?

SEO Speedster

5:37 pm on Nov 30, 2001 (gmt 0)



Sure is...

You want to use what is called a "querystring"

You see this alot within URL's such as...

xyz.asp?variable=1234

The querystring is symbolized after the "?" and "variable" represents the variable name you want to pass, and "1234" is the value of that variable.

Of course, you will need to get that information back from the the URL, and in order to do that, you need the following:

NewVar = Request.QueryString("variable")

NewVar represents the new variable you wish to use, which in the above code, sets itself to the value being passed through the querystring.

Does that help much? I hope!

~ Speedster