How to get previous page URL in C #

How to get previous page URL from C # IE ..

Request.UrlReferrer" not working in IE

Please, help...

+4
source share
2 answers

Try Request.ServerVariables["HTTP_REFERER"]

But Request.UrlReferrer also gets its data, so if there is no value in this variable, there is no way to get it.

And it should work fine in IE ..

+6
source

Browsers do not always send a referrer, so you cannot rely on access to this information.

See the answer for Does http-equiv = "update" save referrer information and metadata?

0
source

All Articles