Back to the main page
Can't find the answer? Ask
Submit Articles
Publish your articles and reach thousands of readers worldwide.
Publish
■ Welcome Guest, LogIn
■ Login with 
Category : Computers & Internet | Posted by : Xcess | Posted on : 10/8/2008 | Updated on : 10/8/2008
Keywords : http, dir, virtual, request, applicationpath, aspx, parameters, currentexecutionfilepath, localhost, url, qvalue, page, details, myrep, fil, net, full, 2000, asp
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.
Add a Comment
Comment as a guest or ( Login / Create an account )
Full name : e-mail :  * will not be displayed
Retype the picture text
Add your comment

Other languages : Wisdia in English English, Wisdia en Français Français, Wisdia en Español Español, Wisdia in Deutsch Deutsche, Wisdia in Italiano Italiano. Terms of use | Privacy Policy | Help © Wisdia 2008-2010, All rights reserved.