WEB/ASP

MapPath

ezmind 2013. 3. 28. 21:31

<%= Server.MapPath(".") %>현재 페이지가 저장된 경로를 알고자 할때

<%= Server.MapPath("..") %>현재 페이지가 있는 상위 디렉토리 이름

<%= Server.MapPath("/") %>홈디렉토리 경로

<%= Server.MapPath("\") %>홈디렉토리 경로

<%= Server.MapPath("/asp3") %>가상 디렉토리의 디렉토리 경로