Vb.net – Retrieve GET variables from URL in ASPX

asp.netformsvb.net

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

Best Solution

You can use the following:

Example URL: 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))
}