UnvalidatedRequestValues.RawUrl Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the part of the requested URL that follows the website name, without triggering ASP.NET request validation.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public string RawUrl { get; }

Property Value

Type: System.String

The part of the URL that follows the website name.

System_CAPS_security Security Note

If you use this property, you must manually check the data for potential cross-site scripting attacks.

If the complete request URL is http://www.contoso.com/default.aspx?id=44, the value of RawUrl is /default.aspx?id=44.

.NET Framework
Available since 4.5
Return to top
Show: