Jump to content

Request.querystring When Is It Called


aspquestions
 Share

Recommended Posts

In the ASP Request section of the asp tutorial (1st example):

<html><body><a href="demo_simplequerystring.asp?color=green">Example</a><%Response.Write(Request.QueryString)%></body></html>
Why doesn't the "color= green" show up the first time the page is loaded (the first time we open the window to look at the example??I am new to asp and am still having a bit of trouble understanding the sequence of events. I would appreciate it if someone would explain this example to me.Thanks! Edited by aspquestions
Link to comment
Share on other sites

Because, the first time, there is no querystring set. Only when you click on the link that has the querystring variable "color" does it get set.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...