Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
fevicon icon is not displaying in either address bar nor tab plz any one help.following is the code
XML
<head id="head1" runat="server">
    <title>Untitled Page</title>
    <link id="Link1" runat="server" href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
    <link id="Link2" runat="server" href="favicon.ico" rel="icon" type="image/ico"/>
</head>
Posted

Try placing a ~
XML
<link runat="server" rel="shortcut icon"href="~/favicon.ico" type="image/x-icon" />
<link runat="server" rel="icon" href="~/favicon.ico" type="image/ico" />

This also needs to be done in the <head> section of the page.

Similar answer might be helpful for you; have a look
Add favicon.ico in ASP.NET[^]
 
Share this answer
 
v2
Comments
Rahul Rajat Singh 13-Jun-12 1:15am    
good answer and good link. +5.
Prasad_Kulkarni 13-Jun-12 4:50am    
Thank you Rahul!
Manas Bhardwaj 13-Jun-12 4:07am    
Correct +5!
Prasad_Kulkarni 13-Jun-12 4:50am    
Thank you Manas!
I'm not convinced that that approach will work with any browser!
See here: How to Add a Favicon to your Site[^]
 
Share this answer
 
Comments
Manas Bhardwaj 13-Jun-12 4:07am    
5ed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900