사이트 루트 URL을 받으려면 어떻게 해야 합니까? ASP의 절대 루트 URL을 받고 싶습니다.NET 애플리케이션을 동적으로 지원합니다.응용 프로그램에 대한 전체 루트 URL이어야 합니다. http(s)://hostname(:port)/ 저는 이 정적인 방법을 사용해 왔습니다. public static string GetSiteRootUrl() { string protocol; if (HttpContext.Current.Request.IsSecureConnection) protocol = "https"; else protocol = "http"; StringBuilder uri = new StringBuilder(protocol + "://"); string hostname = HttpContext.Cu..