Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
My project comprises of master page and content pages. I just wanted to add a logo to be shown at browser tab using favicon. I have an image saved as project 'fg_logo.ico' in my solution explorer
without any folder. The image size is 16X16. I tried in local host but not displaying the logo.
Can I use .png extension files too?

<link rel="icon" href="/fg_logo.ico" type="image/x-icon"/>
Posted
Comments
Do you any error on Developer Tool's console tab? I guess the Path is wrong.

instead of using fg_logo.ico rename it as favicon.ico
 
Share this answer
 
Hello ,
Refer: This link
thanks
 
Share this answer
 
Nothing to do extra just do 1 thing:

Try placing a ~ and set the link elements to runat="server"

like:

<link rel="icon" href="~/fg_logo.ico" type="image/x-icon" runat="server"/>
 
Share this answer
 
v2

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