5
응용 프로그램 시작시 메모리에 내 응용 프로그램의 실제 루트와 상대 경로를 저장하려고합니다. Global.Asax의 상대 루트 얻기
나는 실제 경로 너무 좋아했다 ://Get the physical root and store it
Global.ApplicationPhysicalPath = Request.PhysicalApplicationPath;
하지만 상대 경로를 얻을 수 없습니다. 나는 작동하는 다음과 같은 코드를 가지고 있지만, 그것은 page
객체에 넣어 될 필요
Global.ApplicationRelativePath = Request.Url.AbsoluteUri.Replace(Request.Url.AbsolutePath, "") + Page.ResolveUrl("~/");
감사