UnvalidatedRequestValues.RawUrl Property

Definition

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

C#
public string RawUrl { get; }

Property Value

The part of the URL that follows the website name.

Remarks

Important

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.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1