Last post Aug 31, 2010 08:50 AM by roopeshreddy
Jun 26, 2009 12:56 PM|Renjith.M.P|LINK
I want to know how to add favicon to a mobile page. I have created a sample web application(.net 2.0 ,c#) . I have added this code <link rel="shortcut icon" type="image/gif" href="http://find.mobi/favicon.gif" /> in head tag. This is working fine, if I
inherit my class from "System.Web.UI.Page".
but not working, if I inherit from System.Web.UI.MobileControls.MobilePage .Can any one tell suggest any reason or solution for this ?
I need server side code to implement this .
How to add favicon to a mobile page
favicon in mobile page
Jun 26, 2009 08:35 PM|vcsjones|LINK
That should work - but mind you that a favicon is a browser feature. Not all browsers implement a favicon in a mobile device. Windows Mobile doesn't support it, and nor does Safari on the iPhone.
Jun 27, 2009 02:24 PM|Renjith.M.P|LINK
Ya. I agree . But my code neither working in firefox nor in devices . Can you share a working code with me . Both aspx and code behind.
Jun 29, 2009 07:45 AM|Bullonprowl|LINK
Your implementation is correct. But you dont have to refer it any where in your code. You just need to have a
"favicon.ico" (In IIS. dont know about other webservers) at the root level/folder of your website. Just Make sure you follow the below mentioned image formats to get FavIcons on Supported Mobile Devices (Blackberry, Nokia E75, SonyEricsson
M600i and other high end phones).
For FavIcon, the image need to be like (this is how i rendered the Fav icon for both Desktop and Mobile phone browsers)
1) 16x16 size. 16 colours (4 Bit) or 256 colours (8 Bit)
2) 32x32 size. 16 colours (4 Bit) or 256 colours (8 Bit)
<link rel="Fav Icon" href="/favicon.ico" type="image/vnd.microsoft.icon">
<link rel="icon" type="image/gif" href="http://www.yoursite.com/favicon.gif" />
Both the above tags should work in mobile as well as in Desktop Browsers. Just follow the Image size and resolutions.
Aug 27, 2010 05:36 AM|satishsru|LINK
I am having similar problem.I have created Asp.Net Mobile application, in this i am having Mobile Pages and Mobile User controls.Now i want to add favicon to my application.I have placed favicon.ico in my root directory and i do not know where can i
add this <link> tag in myMobile pages. I tried with lot of options but unable to find the problem.
Can you please help me out
Aug 28, 2010 01:14 AM|roopeshreddy|LINK
The <link> tag should be placed inside the <head> tag. General asp.net code works absolutely fine with the mobile web browsers.
hope it helps u...
Aug 30, 2010 04:59 AM|satishsru|LINK
Thanks for your reply.
I am using the Mobile Pages to build Mobile web application. I do not see <Head> tag in mobile Pages, but under <html> tag i have placed <head> tag and i place <link> tag inside this <head> tag. Even when i browse this page the favicon not appear and
shows warning message like "link is not supported". I am giving sample code in below
My code is here......
Aug 31, 2010 08:50 AM|roopeshreddy|LINK
If you are using Mobile Forms/Mobile Controls, <link> tag is nnot applicable. Therefore you cannot set the shortcut icon. You have use in general asp.net website.
Actually, general asp.net website works absolutely fine in all Mobile devices.
Hope it helps u...