百度上有收录http://www.tx0312.com/yangsheng/2011/0427/14659.html
其他网站上有连接http://www.tx0312.com/yangsheng/2011/0427/14659.html
我怎么判断这个连接是从百度过来的,还是其他网站上过来的呢?
 
用代码如何现实了呢,因为网站改变要兼顾百度上有收录。哪个知道了呢 谢谢!!急求感激不尽

解决方案 »

  1.   


           //记录来源
            string FromURL = "", ToURL = "", FromState = "";
                if (Request.UrlReferrer != null)
                    FromURL = Request.UrlReferrer.ToString();
                ToURL = Request.Url.ToString();
      

  2.   

    System.Web.HttpContext.Current.Request.UrlReferrer只能接受html超链接方式的导航,不能接收自动跳转、按钮等方式的导航
      

  3.   

    放到Global.asax 里面void Session_Start(object sender, EventArgs e)
        {
    //上面的代码 你自己再处理下  
    }