asp.net - Get previous page URL after Response.Redirect -


I am trying to get the previous page URL after writing a reply and I have looked around the web and people < Code> HTTP_REFERER but it does not work with feedback. Can redirects be the URL of the previous page anyway?

I have this code on some pages and I need to know that when it comes to interrupter / default.aspx page

  On redirect ("servicererror / default.aspx? 404")  

and my servicererror / default.aspx page, I just capture the previous page URL and enter the session "Error page")

thanks

Jamie

UPDATE

I have now found it to work like this

  inappropriate D. Redirect ("server-error.aspx? 404 & amp;" and request URL. ToString ())  

This page passes along the error on the next page and then I

thank you

jamie

< P> You can pass the URL of the previous page to the URL of the error page.

Feedback Redirect ("Serviscerar / default.aspx? 404 and url = / folder / page .aspx")

and then retrieve the url value on the error page and redirect it to the previous page.


Comments