还是有问题。context.Request,汗!

YSEE 2010-10-21 04:43:36
Post 来的数据是
"<axmla><disv>aa</disv></axmla>"


context.Request

调试错误提示 HttpRequest Validation Exceptionwas unhandled by user code
Post.ashx


能关闭这个 HttpRequest Validation 能关吗?
...全文
71 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
YSEE 2010-10-21
  • 打赏
  • 举报
回复
没办法。最后还是做了过滤
YSEE 2010-10-21
  • 打赏
  • 举报
回复
A potentially dangerous Request.Form value was detected from the client (="<xmla><diva>aa</diva...").
YSEE 2010-10-21
  • 打赏
  • 举报
回复
3楼

还是不行。
当我把 内容 "<axmla><disv>aa</disv></axmla>" 换成 "aa" 就可以了

我觉得和XML格式 接收有问题。

wuyq11 2010-10-21
  • 打赏
  • 举报
回复
<system.web>
<pages validateRequest="false" />
</system.web>
HooverHuang 2010-10-21
  • 打赏
  • 举报
回复
不知道你再问什么
YSEE 2010-10-21
  • 打赏
  • 举报
回复
原问题,http://topic.csdn.net/u/20101021/15/947b21cb-5549-4b74-abcd-1ceace71a090.html

111,129

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧