943,102 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 6208
  • ASP.NET RSS
Feb 22nd, 2008
0

Icon beside the website address

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
ebabes is offline Offline
73 posts
since Sep 2007
Feb 22nd, 2008
0

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" />
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008
Feb 25th, 2008
0

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.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
ebabes is offline Offline
73 posts
since Sep 2007
Feb 25th, 2008
0

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.
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008
Feb 25th, 2008
0

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.
Last edited by SheSaidImaPregy; Feb 25th, 2008 at 6:43 pm.
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007
Feb 26th, 2008
0

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.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
ebabes is offline Offline
73 posts
since Sep 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Script for Calendar
Next Thread in ASP.NET Forum Timeline: sql server error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC