开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜