작성 포맷 :
TEXT 모드, 자동 줄바꿈 사용
올려주신 소스
<HTML>
<HEAD></HEAD>
<BODY><br><center><font face="돋움" size="2">
<h2>MapPath 예제</h2><p>
MapPath(".") : <%=Server.MapPath(".")%><p>
MapPath("\") : <%=Server.MapPath("\")%><p>
MapPath("..") : <%=Server.MapPath("..")%><p>
MapPath("\MyTest") : <%=Server.MapPath("\MyTest")%><p>
MapPath("/") : <%=Server.MapPath("\")%><p>
MapPath("/MyTest") : <%=Server.MapPath("\MyTest")%><p>
</font></center>
</BODY>
</HTML>
에러 메세지
MapPath 예제
MapPath(".") : C:\Documents and Settings\Administrator\바탕 화면\mytest
MapPath("\") : c:\inetpub\wwwroot
MapPath("..") :
Server.MapPath() 오류 'ASP 0175 : 80004005'
허용되지 않는 경로 문자
/mytest/MapPath1.asp, 줄 7
'..' 문자는 MapPath 메서드에 대한 경로 매개 변수에 사용할 수 없습니다.
이렇게 에러가 나는데... 이제 막 공부하는 초보로서는 에러메세지의 이유를 몰라서 질문 드립니다 ~
|