在使用 百度编辑器 Ueditor 时,不能进入 Controller 相应的 Action 的处理方法
2015-04-21 09:42
561 查看
如果在前端的页面中使用了 Ueditor 编辑器,那么在提交表单数据时,将不会执行 期望的 Controller 中的 Action ,造成这样的原因是: 在 MVC 4 的框架中,当前端页面需要提交表单到 Controller 的 Action 中时, MVC 4 的框架出于安全机制的考虑,会对表单进行危险字符串验证过滤,因为 Ueditor 会产生一些额外的 html 标签和 js, 这样一来,自然就不会进入 Controller 的 Action 中了,在用 FireFox 浏览器时进行发送包跟踪时,会发现 404 和 500 的响应码,如下所示
![](http://images.cnitblog.com/blog2015/644518/201504/210943341562970.png)
解决办法: 将 Controller 的 Action 设置成 不进行验证,也就是加个特性 [ValidateInput(false)] 即可
![](http://images.cnitblog.com/blog2015/644518/201504/210943341562970.png)
解决办法: 将 Controller 的 Action 设置成 不进行验证,也就是加个特性 [ValidateInput(false)] 即可
相关文章推荐
- 免费开源百度编辑器(UEditor)使用方法
- 百度 在线编辑器ueditor1_4_3使用方法及配置
- 百度UEditor编辑器使用教程与使用方法
- 百度UEditor编辑器使用教程与使用方法
- 百度UEditor编辑器使用教程与使用方法
- ueditor-百度可视化编辑器简单使用方法
- ASP.NET使用百度编辑器(UEditor)使用方法
- ASP.NET使用百度编辑器(UEditor)使用方法
- php UEditor百度编辑器安装与使用方法分享
- ASP.NET使用百度编辑器(UEditor)方法
- web编辑器——百度UEditor编辑器使用教程与使用方法
- ecshop整合百度编辑器不能关联商品处理方法
- Ueditor百度编辑器中的 setContent()方法的使用
- Ueditor百度编辑器中的 setContent()方法的使用
- 百度UEditor编辑器使用教程与使用方法(图文)
- 百度UEditor编辑器使用教程与使用方法
- 织梦使用百度Ueditor编辑器上传图片自动生成绝对路径实现方法(测试可用)
- 关于Struts2+spring中使用百度UEditor编辑器显示未找到上传数据的解决方法
- ueditor编辑器asp版不能上传图片的解决方法 500错误
- vue 中 使用百度编辑器 UEditor