HowtoASP.NET
Skip to content
  • Books
  • Web 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

  • How the proxy class works in ASP.NET
  • How to build basic web service with ASP.NET – step 2
  • How to validate an XML document with XML Schemas in C#
  • How to send email in C#
  • How to set up out-of-date HTML standard doctype in ASP.NET 4.0

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
New Apple Macbook pro
About Us | Contact Us | Privacy Policy | Terms

Last Updated 04/22/2021

© 2021 HowtoASP.NET - All Rights Reserved.

All trademarks are property of their legal owners.