Html dangerous method to handle exceptions submit code

When the values ​​are submitted to the ASP.NET MVC html tags, the server will report detected potentially dangerous Request.Form value, the following processing method:

1: In the above reception processing method Action plus [VaildateInput (false)]

2: Locate the Web.config file httpRuntime node add attributes requestVaildationMode = "2.0"

Guess you like

Origin www.cnblogs.com/jiangyunfeng/p/11371843.html