You could get the IIS site name using the GetSiteName method. System.Web.Hosting.HostingEnvironment.ApplicationHost.GetSiteName(); The GetSiteName is introduced in the .NET Framework version 3.5. Related TutorialsHow to use the TreeView navigation control in ASP.NET How to render a password type textbox in ASP.NET How to use XmlTextReader to read XML file as objects in VB.NET How to use comments in XML document How to set Meta Tags in ASP.NET 4.0