EnjoySharePoint YouTube Channel

Display Favicon in Asp.Net web site

In this post, we will see how to show favicon in Asp.Net website.

Get Office 365 Enterprise E3 Or Business Premium Subscription & Try out all the features

You can also check my previous posts on

WCF interview questions and answers in C#.Net

Left outer join and Right outer join

Array and ArrayList in C#.Net.

Favicon usually appears in the browser like below figure.

Favicon is .ico file which will be having size 16*16 pixels.

First, put the favicon.ico file inside the root directory.

To display in master page you have to write like below in the page inside<head> </head> tag.

<link runat=”server” rel=”shortcut icon” href=”favicon.ico” type=”image/x-icon”/>

<link runat=”server” rel=”icon” href=”favicon.ico” type=”image/ico”/>

If you are using master page, then rather than putting in every pages, put it only in the master page.

Check out Best Alternative to InfoPath -> Try Now
You May Also like the Following SharePoint Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →