Favorite Icon is Not appearing in Internet Explorer.

Last post 05-23-2008 8:54 AM by Sudheendra B. 6 replies.

Sort Posts:

  • Favorite Icon is Not appearing in Internet Explorer.

    05-22-2008, 4:13 AM
    • Participant
      1,358 point Participant
    • Sudheendra B
    • Member since 04-25-2008, 7:06 AM
    • India
    • Posts 286

    Hello all forum members,

    I am having a webpage. When i run that page the Favorite Icon is appearing in the Mozilla Browser. But it is no appearing in Internet Explorer. I dont know what is the problem.  

    I have written the code for Favorite icon as

    <link rel="shortcut icon" href="images/iswfavicon.ico"> 

    If any one has got the solution please suggest. Please provide the solution.

    Thank you. 

    Thank you. Yes


    Please don't forget to mark the post as Answer, that helps you.
  • Re: Favorite Icon is Not appearing in Internet Explorer.

    05-22-2008, 5:00 AM
    • Contributor
      3,730 point Contributor
    • mohi88
    • Member since 02-06-2004, 9:21 AM
    • jordan / Turkey
    • Posts 727

    i'm not sure but some times it may take 72 hourse of IE to show the Favorite Icon

     

    Muhanad YOUNIS
    MCSD.NET
    My Blog || My Photos || LinkedIn

  • Re: Favorite Icon is Not appearing in Internet Explorer.

    05-23-2008, 6:34 AM
    • Participant
      1,092 point Participant
    • blodfox777
    • Member since 07-12-2007, 12:30 PM
    • Posts 159

    Hi Sudheendra

    Try to add the "/" because our aspx pages are based on the XHTML standard

    Hope this helps

     
    <link rel="icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
     
     
    Regards!

    -- "Mark As Answer" If my reply helped you --
  • Re: Favorite Icon is Not appearing in Internet Explorer.

    05-23-2008, 6:43 AM
    Answer
    • Participant
      1,092 point Participant
    • blodfox777
    • Member since 07-12-2007, 12:30 PM
    • Posts 159

    Hi Sudheendra

    there is another way:

    1.in your default.aspx add the following code:

     

    <asp:placeholder id="FAVICON" runat="server"></asp:placeholder>

     2.in the codebehind:

    Private Sub ManageFavicon()
        
    ' read the ico from cache
        Dim strFavicon As String = CType(DataCache.GetCache("FAVICON" & PortalSettings.PortalId.ToString), String)
        
    If strFavicon = "" Then
           
    ' if exists
           If File.Exists(PortalSettings.HomeDirectoryMapPath & "favicon.ico"Then
               strFavicon 
    = PortalSettings.HomeDirectory & "favicon.ico"
               If Not Common.Globals.PerformanceSetting = Common.Globals.PerformanceSettings.NoCaching Then
                   
    ' write to cache 
                   DataCache.SetCache("FAVICON" & PortalSettings.PortalId.ToString, strFavicon)
               
    End If
           
    End If
        
    End If
        

       If strFavicon <> "" Then
           

           Dim objLink As HtmlGenericControl = New HtmlGenericControl("LINK")
           
    objLink.Attributes("rel"= "SHORTCUT ICON"
           objLink.Attributes("href"= strFavicon
           Dim ctlFavicon As Control = Me.FindControl("FAVICON")
           ctlFavicon.Controls.Add(objLink)
       
    End If
    End Sub

    Regards!

    -- "Mark As Answer" If my reply helped you --
  • Re: Favorite Icon is Not appearing in Internet Explorer.

    05-23-2008, 7:00 AM
    • Contributor
      6,676 point Contributor
    • ramblor
    • Member since 03-13-2008, 10:03 AM
    • Posts 1,013

    From this article:

    In Internet Explorer 5 and Internet Explorer 6, a shortcut icon does not appear on the address bar unless the user chooses to add the page as a favorite.

    "Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
  • Re: Favorite Icon is Not appearing in Internet Explorer.

    05-23-2008, 8:53 AM
    • Participant
      1,358 point Participant
    • Sudheendra B
    • Member since 04-25-2008, 7:06 AM
    • India
    • Posts 286

     Hi,

    thanks for the reply. 

    Thank you. Yes


    Please don't forget to mark the post as Answer, that helps you.
  • Re: Favorite Icon is Not appearing in Internet Explorer.

    05-23-2008, 8:54 AM
    • Participant
      1,358 point Participant
    • Sudheendra B
    • Member since 04-25-2008, 7:06 AM
    • India
    • Posts 286

     Hi blodfox777 ,

    thanks for reply. 

    Thank you. Yes


    Please don't forget to mark the post as Answer, that helps you.
Page 1 of 1 (7 items)