日期:2014-05-18  浏览次数:20420 次

如何区分是从其它页跳入本页还是本页刷新
网页中有个计数器,从其它页跳入时计数器加1,本页浏览器f5刷新不加,如何判断这两种情况?

------解决方案--------------------
Request.ServerVariables["HTTP_REFERER"] 得到上此的URI

------解决方案--------------------
up
jf
------解决方案--------------------
check Request.UrlReferrer.AbsoluteUri 是不是本页
------解决方案--------------------
C# code

if (HttpContext.Current.Request.UrlReferrer!=null)    
{
string StrReffer=HttpContext.Current.Request.UrlReferrer.ToString();    //来源
{

------解决方案--------------------
探讨
C# code
if (HttpContext.Current.Request.UrlReferrer!=null)
{
string StrReffer=HttpContext.Current.Request.UrlReferrer.ToString(); //来源
{

------解决方案--------------------
Request.UrlReferrer应该解决不了这个问题 本页刷新和从其他页跳转过来的所得到的值是一样的!

关注中,我也期待答案!
------解决方案--------------------
Request.RawUrl
------解决方案--------------------