摘要: 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 环境 阅读全文
posted @ 2013-05-23 10:11 猎魔人 阅读(1495) 评论(0) 推荐(0)