I want to handle links like this:
http://example.com/test.aspx?userid=tras&server=bum
I looked here, and they do this:
HttpApplication objApp = (HttpApplication) sender; <--- ERROR LINE
string userid = objApp.Request["userid"].ToString();
But I get the error:
Unable to cast object of type 'ASP.test_aspx' to type 'System.Web.HttpApplication'.
I need simple input from html nothing fancy. Just to get couple of string items in way described above,