I have not done asp.net non-MVC for a while but I believe this is possible using the Current
property of the HttpContext
class. The Current
property is static
and should be always available during a web page post back.
Use HttpContext.Current.Request.QueryString["UserName"]
to get the values you require.