Question : favicon not showing up in IE8

Hi,

I have a page for which I am trying to get a favicon to work in IE8. The html of my page is attached below. I am temporarily using the favicon from msn.com which shows up fine in IE8 for msn.com (first time, no need to add it to favourites or anything) but my page just shows the default internet explorer icon. My link code is a cut and paste from msn.com. My page works fine in Firefox. I have tried deleting the IE8 browser history but it made no difference. Can anyone help me sort this out?

Thanks,
Alan.
1:
2:
3:
4:
5:
6:
7:
8:
9:
<html>
<head>
<link rel="SHORTCUT ICON" href="http://hp.msn.com/global/c/hpv10/favicon.ico" type="image/vnd.microsoft.icon" />
<title>test</title>
</head>
<body>
blah blah blah
</body>
</html>

Answer : favicon not showing up in IE8

Just when I test and prepare my below comment, shortiiik has posted a similar solution....anyway I am posting here if it helps in some way.....

Yes. UrlReferer is correct first time when page loads, then any action in the page inside web part changes UrlReferer to itself...

I think you need to save the original referer value when page inside the web part loads first time in Session variable and use it later...


      protected void Page_Load(object sender, EventArgs e)
        {
         if (Session["OriginalUrlReferer"] == null) // or use IsPostBack
                Session["OriginalUrlReferer"] = System.Web.HttpContext.Current.Request.UrlReferrer;
        }


      // to use it later...
      protected void Button2_Click(object sender, EventArgs e)
        {
            Uri originalReferer = (Uri)Session["OriginalUrlReferer"];
        }

Random Solutions  
 
programming4us programming4us