首页 > 其他 > 详细

检测到有潜在危险的 Request.Form 值

时间:2015-09-28 11:35:00      阅读:236      评论:0      收藏:0      [点我收藏+]

http://www.cnblogs.com/youring2/p/3559781.html

http://blog.unvs.cn/archives/a-potentially-dangerous-request-form-value.html

http://blog.unvs.cn/archives/vs-debug-question.html

以上是搜索到的连接,我的项目环境是vs2010,mvc4,解决方法是在对应的Action前面加上[ValidateInput(false)]

 

//
        // POST: /RiceChengguo/Create
        [ValidateInput(false)]
        [HttpPost]
        public ActionResult Create(RiceChengguo rChengguo)
        {
            try
            {
                // TODO: Add insert logic here
                rChengguo.Insert();
                return View("AddSuccess", rChengguo);
            }
            catch
            {
                return View();
            }
        }

 

检测到有潜在危险的 Request.Form 值

原文:http://www.cnblogs.com/zkwarrior/p/4843536.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!