I'm trying to get this:
www.mytest.com/form?a=123&u=123123
How can I programatically C#, get the variables in the URL?
I'm trying to get this:
www.mytest.com/form?a=123&u=123123
How can I programatically C#, get the variables in the URL?
string a= Page.Request.QueryString["a"];
string u= Page.Request.QueryString["u"];
This will work no matter if the request is POST or GET
string myData = Page.Request["a"]
If it's a POST request, the data won't go on the querystring, take this into account.