System.Web Namespace HttpRequest Class
Gets the raw URL of the current request.
[ VB ] Public ReadOnly Property RawUrl As String [ C# ] public string RawUrl {get;} [ C++ ] public: __property String* get_RawUrl ( ); [ JScript ] public function get RawUrl ( ) : String;
The raw URL of the current request.
The raw URL is defined as the part of the URL following the domain information.
For example, in the URL string
http://aspalliance.com/index.aspx
the raw URL is
/index.aspx
The raw URL includes the query string, if present.
The following example shows the simplest way to retrieve and display the RawUrl for the current URL request.
<%= Request.RawUrl %>
And which, for this page, returns the following:
/sys/Web/httprequestclassrawurl.aspx
Show me
Request.ApplicationPath Request.FilePath Request.Path Request.PathInfo Request.PhysicalApplicationPath Request.PhysicalPath Request.Url HttpRequest Members
© 2000-2010 Rey Nuñez All rights reserved.If you have any question, comment or suggestion about this site, please send us a note
You can help support asp.net.ph