Jump to content

Request.querystring When Is It Called


aspquestions

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!
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...