pavan
pavan

Reputation: 11

how to get respective image in url for asp.net website

I need to get our company image before the url in asp.net website for example in google before google image appeears

Upvotes: 0

Views: 176

Answers (2)

Yair Nevet
Yair Nevet

Reputation: 13013

insert the following code into the head section of your page with the respective image/icon:

<link rel="icon" 
      type="image/png" 
      href="/somewhere/myicon.png" />

In order to support cross-browsers you should create and use .ico file instead of *.png as in my exapmple. Try the free *.fav icon creator on-line service: http://www.favicon.cc/

Upvotes: 1

Ivo
Ivo

Reputation: 8362

What you need is to add a favicon in the root of your web application. Browsers will request that file and if it exist, they will show the icon before the url. In order to be compatible with most browsers, you will need to create a .ico file (this is, favicon.ico)

Here there's more information on this: http://en.wikipedia.org/wiki/Favicon

Upvotes: 2

Related Questions