MVC去掉传参时的验证:从客户端中检测到有潜在危险的Request.QueryString值
2015-06-01 17:28
411 查看
解决方法:给Action添加属性[ValidateInput(false)]。
例:
例:
[ValidateInput(false)] public ActionResult Index(string org) { }
相关文章推荐
- UITableViewCell
- GRE ISSUE写作论证论据素材 伦理道德类
- 解题报告 之 CodeForces 91B Queue
- 将UIView 转换为图片
- JSP 解决illegal to have multiple occurrences of contentType with different values错误
- GRE ISSUE写作论证论据素材 商业类
- String、StringBuilder和StringBuffer
- GRE ISSUE写作论证论据素材 社会发展类
- Android中InCallUI显示太慢问题分析
- 基于AMD的Require.js学习笔记
- 百度的富文本编辑器UEDITOR
- break continue switch 语句的使用
- UIViewController中各方法调用顺序及功能总结
- PHP中include和require的区别
- Excel异常Cannot get a text value from a numeric cell
- iOS AFN请求返回错误:"Request failed: unacceptable content-type: text/html"
- Xcode出现could not build module foundation错误 解决方案
- 提高Interface Builder高效工作的8个技巧
- JavaString、StringBuilder、StringBuffer总结
- java获取request所有参数简单方法