Click here to Skip to main content
13,351,225 members (49,966 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i wanna add a image to title of a aspx page in
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
Updated 26-Aug-17 7:22am
Rate this: bad
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[^]

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.

Manas Bhardwaj 5-Sep-12 7:37am
yup +5! 5-Sep-12 8:01am
Rate this: bad
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.
Manas Bhardwaj 5-Sep-12 7:38am
yes +5!
Sandeep Mewara 5-Sep-12 7:50am
Thanks Manas.
Rate this: bad
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" />
Manas Bhardwaj 5-Sep-12 7:38am
correct +5!
Rahul Rajat Singh 5-Sep-12 7:40am
Thanks. 5-Sep-12 8:01am
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 |
Web02 | 2.8.180111.1 | Last Updated 26 Aug 2017
Copyright © CodeProject, 1999-2018
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