asp.net.ph

Request.RawUrl Property

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;

Property Value

The raw URL of the current request.

Remarks

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.

Example

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 

See Also

Request.ApplicationPath   Request.FilePath   Request.Path   Request.PathInfo   Request.PhysicalApplicationPath   Request.PhysicalPath   Request.Url   HttpRequest Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 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