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 TutorialsTemplate properties of GridView control
How to search XML content with XPath in VB.NET
How to populate the TreeNode objects in ASP.NET in C#
How to create an ASP.NET web-page client for a web service in C#
How to investigate the …