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?
精彩评论