[ASP.NET] About Dangerous Request.Form Value Solution

xiaoxiao2021-03-06  83

Error Tip: a potentially Dangerous Request.form Value Was Detected from the client

(txttest = "").

Since there is a string such as HTML or JavaScript, the system will be considered dangerous when there is a string such as HTML or JavaScript, and the system occurs.

Injury. Rapida reports.

Solution 1: Add this sentence in the .aspx file: <% @ page validaterequest = "false"%>

Solution 2: Modify Web.config File:

Because the ValidateRequest default value is TRUE. Just set to false.

转载请注明原文地址:https://www.9cbs.com/read-106132.html

New Post(0)