HowtoASP.NET
Skip to content
  • Tutorials
    • How To Send Email in ASP.NET
    • How to create Web Service in ASP.NET
    • How to create new aspx web page
    • How to use pager in GridView control
    • How to refresh a page in ASP.NET
  • ASP.NET Books
  • ASP.NET Hosting
  • Developers
  • Reference
  • Glossary

How to get site name in ASP.NET

You could get the IIS site name using the GetSiteName method.

Best VPN for Developers

System.Web.Hosting.HostingEnvironment.ApplicationHost.GetSiteName(); 

The GetSiteName is introduced in the .NET Framework version 3.5.

Related tutorials:

  1. The Web service life cycle in ASP.NET
  2. How to document web service in ASP.NET in C#
  3. How to create an ASP.NET web-page client for a web service in C#
  4. How to manage the ASP.NET web service data caching in VB.NET
Categories: ASP.NET Tags: asp.net, asp.net 3.5
Post navigation
← ASP.NET Server-side caching How to send email in C# →
Best VPN

Categories

  • ASP.NET
  • For Beginners
  • VB.NET
  • C#
  • MVC
  • Ajax
  • Web Forms
  • Database
    • SQL Server
    • ADO.NET
    • LINQ
    • Access
  • Mobile
  • Security
  • Web Hosting
  • CSS
  • HTML
  • Errors

Most Popular

  • Best ASP.NET Hosting
  • Best ASP.NET Books
  • How to send email
  • How to create Web Service
  • How to create new aspx web page
  • How to use pager in GridView control
  • How to refresh a page
Contact Us | Privacy Policy | Terms

Last Updated 06/17/2025

© 2025 HowtoASP.NET - ASP.NET Tutorials with Examples - All Rights Reserved.

All trademarks are property of their legal owners.
We use cookies to give you the best experience on our website.I accept