Click here to Skip to main content
12,693,891 members (34,378 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET4
hi.
i wanna add a image to title of a aspx page in asp.net.
so how i can add this?

like this: "when codeproject is loaded a small image is side of page title"
Posted 5-Sep-12 1:58am
r.kh773
Updated 16-Mar-16 9:13am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi r,

What you are asking is on how to set the favicon.

More info here http://en.wikipedia.org/wiki/Favicon[^]

Try this, in your site put the link in MasterPage:

<link rel="shortcut icon" type="image/x-icon" href="~/favicon.ico" />


Additionally, such icon files should be 16×16, 32×32, 48×48, or 64×64 pixels in size, and 8-bit, 24-bit, or 32-bit in color depth.

Cheers
  Permalink  
Comments
Manas Bhardwaj 5-Sep-12 7:37am
   
yup +5!
r.kh 5-Sep-12 8:01am
   
thank
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Sounds like you are talking of adding an icon in the page header.

Here: Add a Favicon to your ASP.Net page[^]

It's called favicon. A favicon is the little image displayed at the left edge of the address bar in most browsers, or on the tab.
Adding a favicon to your website is very easy. First you need to create a 16 by 16 pixel icon and name it favicon.ico. Save your favicon to the root directory of your ASP.Net web application.
  Permalink  
Comments
Manas Bhardwaj 5-Sep-12 7:38am
   
yes +5!
Sandeep Mewara 5-Sep-12 7:50am
   
Thanks Manas.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

It is called favicon. You should add this on the page you need to show the favicon. preferably in some common place like masterpage or header ascx/js(in case you are using old way instead of masterpage).

<link runat="server" rel="shortcut icon" href="~/favicon.ico" type="image/x-icon"/>
<link runat="server" rel="icon" href="~/favicon.ico" type="image/ico" />
  Permalink  
Comments
Manas Bhardwaj 5-Sep-12 7:38am
   
correct +5!
Rahul Rajat Singh 5-Sep-12 7:40am
   
Thanks.
r.kh 5-Sep-12 8:01am
   
thank
Debojyoti Saha 17-Jan-13 6:11am
   
Hi
Rahul Rajat Singh, add a favicon icon to my website as you described. Firefox and chrome support the favicon but IE not support it.
so how can i show the icon in IE?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 1 Apr 2016
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100