Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have placed the link below in the portion of the website.

I placed ShortcutIcon.png" in the Server.MapPath("~/"). I still do not get the Icon in the Bookmarks or Favorites png. Is there any other dynamic way to get this done?



What I have tried:

Added to Default.aspx . Put the png photo in root directory still no Icon.
Posted
Updated 3-Apr-17 4:05am
Comments
Karthik_Mahalingam 3-Apr-17 9:14am    
do you mean favicon?

1 solution

Try using an .ico file. You also need a tag in your HTML:
HTML
<link rel="shortcut icon" href="/path/favicon.ico">

Read this for more info:
html - "/favicon.ico" vs <link rel="shortcut icon" /> - Stack Overflow[^]
 
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