I have an error.aspx page. If a user comes to that page then it will fetch the error path in page_load() method URL using Request.QueryStrin
error.aspx
page_load()
Request.QueryStrin
think the check you're looking for is this:
if(Request.QueryString["query"] != null)
It returns null because in that query string it has no value for that key.
null