简体   繁体   中英

How to get previous page URL in c#

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

Request.UrlReferrer" not working in IE

Please help...

Try Request.ServerVariables["HTTP_REFERER"]

But Request.UrlReferrer gets his data there too, so if the value isn't set in that variable, there is no way to get it.

And it should work fine in IE..

Browsers don't always send the referrer, so you can't rely on having access to that information.

See the answer for Does http-equiv="refresh" keep referrer info and metadata?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM