Hi you can get the query string from the
HttpRequest
object of the context. The context can be accessed anywhere in the application like this
HttpContext context=HttpContext.Current;
HttpRequest req = context.Request;
string param1 = req.QueryString["testparam"];
I won't recommend logging page specific context parameters in the global Application Error handler. Instead have this logic in each page by handling the
Page.Error
event.