views:

650

answers:

3

What's the easiest / standard way to retrieve the GET (in URL) variables passed to a .aspx (VB) page?

+4  A: 

Look at the Request.QueryString collection

Clyde
+2  A: 

Here is an example from SO on looping through the GET postback values.

http://stackoverflow.com/questions/562943/looping-through-a-request-querystring-in-vb-net

Zachary
+2  A: 

You can use the following:

http://www.whatever.com?hello=goodbye&goodbye=hello

string value = Request.QueryString["hello"]

Value will be goodbye

or

foreach(string key in Request.QueryString)
{
    Response.write(Request.QueryString[key])
}
Jonathan Mayhak