Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

Here I need our siteimage come with the URL in URL adressbox in all browsers.
when we take any site related to google. In address box it will show the address with there small image. Also the same if we take Code Project display the URL with that image in all browsers.

I would like to know How to apply in our project using asp.net? Where I have to put this image for displaying like this?

Please help.

Thank you,
Soumya
Posted
Updated 31-Dec-10 0:53am
v2

First, create your icon. It must be small: 16x16 pixels and save it as a windows icon (.ico) file. Then either:
1) Save it as favicon.ico in the root of your website and it will be used when your site is added to the favourites list.

2) Add the following to your website code:
<link rel="SHORTCUT ICON" href="~/your_directory/your_logo.ico">
In this case is does not need a specific name.

[edit]Oops! "~" in the wrong place - Sorry! -- OriginalGriff[/edit]
 
Share this answer
 
v2
Comments
Manfred Rudolf Bihy 31-Dec-10 8:11am    
Good call! 5+
Read all about Favicons, as they are called, here:

http://en.wikipedia.org/wiki/Favicon[^]
It is a good resoure with a compatibility matrix for different browswers.

Regards,
Manfred
 
Share this answer
 
v4
Comments
Espen Harlinn 5-Jan-11 14:05pm    
5+ Good link

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