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 configure session state to use Uri in ASP.NET
How to change bullets on list items with CSS
How to document web service in ASP.NET in VB.NET
How to run JavaScript from code behind in ASP.NET
How to create a manual …