Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
<link id="Link1" runat="server" rel="shortcut icon" href="~/favicon.ico" type="image/x-icon" />
<link id="Link2" runat="server" rel="icon" href="~/favicon.ico"  type="image/ico" />
Posted 28-Jan-13 3:38am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You should remove the runat="server" tag. And confirm that your href path is correct.
 
Example:
 

 <link rel="shortcut icon" href="img/favicon.ico" />
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

use this
<link rel="shortcut icon" href="~/favicon.ico" /> 
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,127
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100