www.cftea.com

Request 各个 Path 的区别

ITPOW2018/8/23 20:53:01

代码如下:

结果如下:

Request.PhysicalApplicationPath:D:\cftea\db\admin\
Request.PhysicalPath:D:\cftea\db\admin\path\WebForm1.aspx
Request.ApplicationPath:/
Request.Path:/path/WebForm1.aspx
Request.PathInfo:
Request.FilePath:/path/WebForm1.aspx
Request.AppRelativeCurrentExecutionFilePath:~/path/WebForm1.aspx
Request.CurrentExecutionFilePath:/path/WebForm1.aspx
<<返回首页<<