Jason.Yuan

[My Blog,My Repository,My Communication,My Friends,My Success]

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

对 Server.MapPath 的说明

1。IIS的根目录==>c:\inetpub\wwwroot
2。虚拟目录"oas"==>F:\hskama\oas
3。在http://localhost/oas/sys/others/mkm.aspx执行Response.Write(XXX)

结果:
Server.MapPath(".")             F:\hskama\oas\sys\others
Server.MapPath("~")             F:\hskama\oas
Server.MapPath("")              F:\hskama\oas\sys\others
Server.MapPath("..")            F:\hskama\oas\sys
Server.MapPath("~/..")          c:\inetpub\wwwroot

posted on 2005-01-20 12:55  Jason's Blog  阅读(328)  评论(0)    收藏  举报