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 validation controls work in ASP.NET 4.0 How to use XmlTextReader to read XML file as objects in C# How to refresh a page in ASP.NET How to add a background color to a heading with CSS How to manage the ASP.NET web service buffer response