AspNetCore.Docs/aspnet/web-pages/readme/beta3/samples/sample4.cs

6 lines
286 B
C#

Request["userInput"]; // Validated
Request.Unvalidated("userInput"); // Validation bypassed
Request.Unvalidated().Form["userInput"]; // Validation bypassed
Request.QueryString["userPreference"]; // Validated
Request.Unvalidated().QueryString["userPreference"]; // Validation bypassed