惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
The Cloudflare Blog
量子位
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
G
Google Developers Blog
D
DataBreaches.Net
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
U
Unit 42
博客园 - 聂微东
有赞技术团队
有赞技术团队
A
About on SuperTechFans

博客园 - Skycper

My new blog Nokia Connecting Pop Win Vista Beta2 软件使用手记 Google's two new productions 五一回家了 MAC OS X for x86、Windows Vista、Windows XP三系统安装及试用手记 javascript实现类似google拖动效果 - Skycper - 博客园 利用xmlhttp实现页面无刷新数据更新技术 - Skycper - 博客园 Google Page Creator II 鬼舞者3(Onimusha 3) Goolge Page Creator foxmail国外邮箱的使用方法 取消WinXP磁盘容量警告的方法 页面上弹出确认删除对话框 Web建设中... asp.net...xml...sqlserver...努力努力... 电话线搞怪... 后悔了?没后悔?后悔了?Who knows... 世事难料
ASP.NET中Dangerous Request.Form value错误的解决方法
Skycper · 2006-06-04 · via 博客园 - Skycper

asp.net中request中出现html或javascript时,系统会认为是危险的request.form value,马上报错:
A potentially dangerous Request.Form value was detected from the client.

解决方法一:
在web.config中添加。
<configuration>
  <system.web>
    <pages validateRequest="false" />
  </system.web>
</configuration>

解决方法二:
在aspx文件头部加<%@ Page validateRequest="false"  %>