...

View Full Version : ASP.NET HTTP GET method help



joe_coolish
12-29-2004, 11:41 PM
Hello, I've been programming in PHP for ever, but my work is having me do this page in asp. So, i was wondering, how do you get variables passed through the address bar? like if i went to the link http://localhost/test.aspx?foo=blah&bar=blah2

how would I be able to pull the variables from that? I know in PHP there is the $_GET['foo'] but what is it in ASP?

thanks

Roelf
12-30-2004, 08:13 AM
Check here for documentation (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttprequestclassquerystringtopic.asp)
You can use
Request.QueryString("foo")
Request.QueryString("bar")



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum