引自: http://www.cnblogs.com/wkpeng/archive/2009/09/08/1562749.html
網址:http://sns.mmkee.com/test.aspx?viewType=130 | |
Request.ApplicationPath | / |
Request.PhysicalPath | d:\My Documents\Visual Studio 2005\Projects\Code\SNS\Web\test.aspx |
System.IO.Path.GetDirectoryName(Request.PhysicalPath) | d:\My Documents\Visual Studio 2005\Projects\Code\SNS\Web |
Request.PhysicalApplicationPath | d:\My Documents\Visual Studio 2005\Projects\Code\SNS\Web\ |
System.IO.Path.GetFileName(Request.PhysicalPath) | test.aspx |
Request.CurrentExecutionFilePath | /test.aspx |
Request.FilePath | /test.aspx |
Request.Path | /test.aspx |
Request.RawUrl | /test.aspx?viewType=130 |
Request.Url.AbsolutePath | /test.aspx |
Request.Url.AbsoluteUri | http://sns.mmkee.com/test.aspx?viewType=130 |
Request.Url.Scheme | http |
Request.Url.Host | sns.mmkee.com |
Request.Url.Port | 80 |
Request.Url.Authority | sns.mmkee.com |
Request.Url.LocalPath | /test.aspx |
Request.PathInfo | |
Request.Url.PathAndQuery | /test.aspx?viewType=130 |
Request.Url.Query | ?viewType=130 |
Request.Url.Fragment | |
Request.Url.Segments | / test.aspx |