1 //URL:http://localhost: 1897/user/press/usercontent.aspx/9878?id=1#toc2Request.applicationpath;//Results:/3Request.PhysicalPath;//results: D:\Projects\Solution\web\User\Press\UserContent.aspx4System.IO.Path.GetDirectoryName (Request.PhysicalPath);//results: D:\Projects\Solution\web\User\Press5Request.physicalapplicationpath;//results: D:\Projects\Solution\web\6System.IO.Path.GetFileName (Request.PhysicalPath);//results: usercontent.aspx7Request.currentexecutionfilepath;//results:/user/press/usercontent.aspx8Request.filepath;//results:/user/press/usercontent.aspx9Request.path;//results:/user/press/usercontent.aspx/9878TenRequest.rawurl;//results: l/user/press/usercontent.aspx/9878?id=1 OneRequest.Url.AbsolutePath;//results:/user/press/usercontent.aspx/9878 ARequest.Url.AbsoluteUri;//Results:http://localhost: 1897/user/press/usercontent.aspx/9878?id=1 -Request.Url.Scheme;//Result: http -Request.Url.Host;//Result: localhost theRequest.Url.Port;//Results: 1897 -Request.Url.Authority;//results: localhost:1897 -Request.Url.LocalPath;//results:/user/press/usercontent.aspx/9878 -Request.pathinfo;//results:/9878 +Request.Url.PathAndQuery;//results:/user/press/usercontent.aspx/9878?id=1 -Request.Url.Query;//results:? id=1
View Code
Gets the address, parameters, parameter values, various properties of the URL for the current request