Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

How can I set the browers icon?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christopher Carey - 04 Oct 2006 17:43 GMT
I'd like to be able to control the icon presented in the upper left corner of
the browser dynamically, based upon the page I'm serving.  Is there a way to
do this?
ThunderMusic - 04 Oct 2006 18:13 GMT
you have everything here:

http://www.davesite.com/webstation/html/favicon.shtml

I hope it helps

ThunderMusic

> I'd like to be able to control the icon presented in the upper left corner
> of
> the browser dynamically, based upon the page I'm serving.  Is there a way
> to
> do this?
Christopher Carey - 04 Oct 2006 19:57 GMT
Thank you for the feedback; however, this does not address the issue.  If
somebody makes a request, via their browser, to my site,
www.foo.com/page.aspx, I want to be able to specify the icon in the
upper-left corner of the browser (in IE, it's the blue 'e' on a white page).  
Ideally, I'd like to do this as part of the Page_Load method in the page that
is serving the request.
Mark Fitzpatrick - 04 Oct 2006 21:10 GMT
You can't. The only time IE will allow that is when you have bookmarked the
site in some fashion. Then it will add the favorite icon. There is no way to
do it in code and no way to force IE to do it. Also, whenever the cache is
cleaned out the icon will be removed, regardless of whether or not the page
is still bookmarked.

For FireFox or Opera you can show an icon, but you have to follow the
examples that were provided by ThunderMusic. You can change the link
reference through code to generate the correct icon, but you have to follow
the format in the examples.

Signature

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

> Thank you for the feedback; however, this does not address the issue.  If
> somebody makes a request, via their browser, to my site,
[quoted text clipped - 4 lines]
> that
> is serving the request.
Christopher Carey - 04 Oct 2006 23:08 GMT
I must not be explaining myself.  I don't care about setting icons in the
favorites list or in the address bar.  I want to set the icon that is display
on the left side of the title bar; that is, the application icon for the
browser.  Just like I can set the text that's displayed in the title bar, I'd
like to set the icon that's displayed in the title bar.  Is that possible?
Alvin Bruney [MVP] - 04 Oct 2006 23:50 GMT
reread marks post again

Signature

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

>I must not be explaining myself.  I don't care about setting icons in the
> favorites list or in the address bar.  I want to set the icon that is
[quoted text clipped - 3 lines]
> I'd
> like to set the icon that's displayed in the title bar.  Is that possible?
Christopher Carey - 05 Oct 2006 00:21 GMT
With all due respect, what am I missing?

Mark said "You can't."

Then he goes on to say:

"The only time IE will allow that is when you have bookmarked the
site in some fashion. Then it will add the favorite icon."

"For FireFox or Opera you can show an icon, but you have to follow the
examples that were provided by ThunderMusic. You can change the link
reference through code to generate the correct icon, but you have to follow
the format in the examples."

When he explains how it can be done, he talks about bookmarks and favorites;
the examples ThunderMusic gave were for icons that will be displayed 1) in
the favorites list, or 2) in the address bar.

I understand that.  But that's not what I'm looking for.

I don't want icons associated with URLs.  I don't care about icons in the
favorites list.  I don't care about icons in the address bar leading a known
URL.

What I'm asking about is the icon in the top left corner of the browser
window.  If one configure IE, for example, so that it does not have an
address bar, or a tool bar, or a menu bar, you're still left with the title
bar, and it has an icon on the left side.  This icon *DOES NOT* change if you
hit a site that has a properly configured link reference.

Do this experiment; go to ThunderMusic's site, and save it as a favorite.  
You'll see in the list that he does associate an icon with his site.  You'll
see that icon in the address bar, to the left of the URL, and you'll see it
in front of his URL in the favorites.  You *WILL NOT* see it in the title bar
of the browser.

So, again, it is the icon in the Title Bar that I would like to be able to
change.  As I mentioned in my last post, the <title> tag replaces the text in
the title bar; is there some kind of equivalent way to change the application
icon that is in the title bar?
Mark Fitzpatrick - 05 Oct 2006 04:44 GMT
Ok. Now I get it. I think the reason nobody got it exactly is nobody has
ever asked that one. There isn't anything you can do to change that icon. It
is the applicaiton icon as defined by the application. Just like Word will
have it's own icon there, Outlook, FireFox, etc., that's part of the
application itself and you're not going to get it changed through code
without altering the desktop icon settings and that required more privaleged
access (if possible, I think it can be done but for IE it would probably
have to be done through something like the IE administration kit or the
registry).

Signature

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

> With all due respect, what am I missing?
>
[quoted text clipped - 46 lines]
> application
> icon that is in the title bar?
Christopher Carey - 05 Oct 2006 15:09 GMT
krishnareddy yerram - 11 Jul 2007 14:13 GMT
Hi,

 Use IE 7.0.

Place following code in your header.
    <link rel="shortcut icon" href="images/Logo.ico" type="image/x-icon" />

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.