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 create the proxy class with Visual Studio in ASP.NET How to create the proxy class with wsdl command-line tool in ASP.NET How to validate XML document with XDocument class in VB.NET How to add a background color to a heading with CSS How to create a simple master page in ASP.NET