I\'m trying to get the previous page URL after I do a response write and i\'ve looked around the web and people are using HTTP_REFERER but that doesn\'t work wi
HTTP_REFERER
You can pass the URL of the previous page to the error page's URL. something like
Response.Redirect("servererror/default.aspx?404&url=/folder/page.aspx")
And then get the url value on the error page and redirect it to the previous page.