HostingEnvironment를 이용한 호스팅 정보 활용


참조 URL
  1. http://msdn.microsoft.com/ko-kr/library/system.web.hosting.hostingenvironment(v=vs.110).aspx

 


example


protected void Page_Load(object sender, EventArgs e) { appID = HostingEnvironment.ApplicationID; appPPath = HostingEnvironment.ApplicationPhysicalPath; appVPath = HostingEnvironment.ApplicationVirtualPath; siteName = HostingEnvironment.SiteName; }





+ Recent posts