摘要:
1.在页面aspx中<%@ Page ValidateRequest="false" >2.在controller中action添加。[ValidateInput(false)]public ActionResult Edit(){this.ValidateRequest = false;retrun View();}3.在网站web.config<system.web> <httpRuntime requestValidationMode="2.0" /></system.web>在.net 4.0 环境 阅读全文