 |
Request.Url parameters & details (Asp.net)
|
Request.Url Full URL : http://localhost:2000/virtual_dir/myrep/page.aspx?q=qvalue
| Request.ApplicationPath : |
/virtual_dir |
| Request.CurrentExecutionFilePath : |
/virtual_dir/myrep/page.aspx |
| Request.FilePath : |
/virtual_dir/myrep/page.aspx |
| Request.Path : |
/virtual_dir/myrep/page.aspx |
| Request.PhysicalApplicationPath : |
d:\Inetpub\wwwroot\Websitename\virtual_dir\ |
| Request.QueryString : |
/virtual_dir/myrep/page.aspx?q=qvalue |
| Request.Url.AbsolutePath : |
/virtual_dir/myrep/page.aspx |
| Request.Url.AbsoluteUri : |
http://localhost:2000/virtual_dir/myrep/page.aspx?q=qvalue |
| Request.Url.Host : |
localhost |
| Request.Url.Authority : |
localhost:2000 |
| Request.Url.LocalPath : |
/virtual_dir/myrep/page.aspx |
| Request.Url.PathAndQuery : |
/virtual_dir/myrep/page.aspx?q=qvalue |
| Request.Url.Port : |
2000 |
| Request.Url.Query : |
?q=qvalue |
| Request.Url.Scheme : |
http |
| Request.Url.Segments : |
/ |
| |
virtual_dir/ |
| |
myrep/ |
| |
page.aspx |
| Comments : |
 |
Very useful information.
|
|
|
|
 |
it's also possible to access the request or the session from my class placed in app_code : you can get the current httpcontext from a public static fonction or procedure : - System.Web.HttpContext.Current.Application : application - System.Web.HttpContext.Current.Session : user session - System.Web.HttpContext.Current.Request : Current request
|
|
|
|
 |
Today i was busy, for the first time requesting url parameters in asp.net C sharp. I'm client based developer, i get challenge now and i have to fix it now, if not they tell my boss and i'm getting cold. Thanks....guys.
|
|
|
|
| Similar publications | Latest publications |
| |
|
|