DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Icon beside the website address (http://www.daniweb.com/forums/thread110319.html)

ebabes Feb 22nd, 2008 6:32 am
Icon beside the website address
 
I wish to put an image/icon beside the website address everytime a user visits my page. How can I do this in ASP.Net?

serkan sendur Feb 22nd, 2008 7:18 am
Re: Icon beside the website address
 
Create an image with .ico extention(you can create this by using visualstudio). Add this to your masterpage <link rel="SHORTCUT ICON" href="images/favico.ico" />

ebabes Feb 25th, 2008 5:26 am
Re: Icon beside the website address
 
What if I didn't make use of a master page, where will i put the code? I tried inserting it right after the title tag of my default.aspx (this is the only place where I had seen that the code link rel is accepted), yet no icon appeared on the left of my site address. I inserted a .ico file in the images directory anyway.

serkan sendur Feb 25th, 2008 6:52 am
Re: Icon beside the website address
 
i have tried it creating a new project and it worked without any problems. Is your default page in the root folder of your application? The href must be relative to your document. I can't think of any other problem for it not to work.

SheSaidImaPregy Feb 25th, 2008 6:42 pm
Re: Icon beside the website address
 
You need to put the link in the <head>, just like style sheets. And make sure it is relative to your document. (It works outside of it, but this depends on which browsers and versions too).

Internet explorer doesn't show icons very well. Preview it in Mozilla.

With or without master pages, this only means that since you don't have one, you will need to place this <link...> within every single page, or an included header page.

ebabes Feb 26th, 2008 4:12 am
Re: Icon beside the website address
 
Thanks to all. The code is now working. It happened that there was a delay in the server where I uploaded my site.


All times are GMT -4. The time now is 7:50 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC