SoFunction
Updated on 2025-03-09

Potentially dangerous value avoidance methods

Personally, I feel that it is in .net framework 4.0

The best way to solve the problem of "potentially dangerous values" is

Add the sentence <httpRuntime requestValidationMode="2.0"/>

Because 4.0 verification is enabled before HTTP's BeginRequest
Copy the codeThe code is as follows:

<>
<httpRuntime requestValidationMode="2.0" />
</>