1:在提交保存的方法里面 [HttpPost] [ValidateInput(false)] public JsonResult BMBlockEditPost(AgentRecmd_Block abEntity) 2:在page页面里面
page里面写validateRequest="false" 3:在webconfig里面
<configuration> <system.web> <pages validateRequest="false"> </pages> </system.web> </configuration> 4:在webconfig里面
<configuration> <system.web> <httpRuntime requestValidationMode="3.5"/> </system.web> </configuration>