asp_错误解决

来源:互联网 发布:阿里云与运营商云区别 编辑:程序博客网 时间:2024/05/18 20:05

从客户端(ListView1$ctrl0$contentTextBox="<div><h3><span id="l...")中检测到有潜在危险的 Request.Form 值。

解决办法:
首先在<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeBehind="ListViewDemo.aspx.cs" Inherits="Maticsoft.Web.ListView.ListViewDemo" %>内加上如上有颜色的字体文字。

然后在Web.config:

<system.web>
<httpRuntime requestValidationMode="2.0"executionTimeout="3600" maxRequestLength="1048576"/>
<compilation debug="true" targetFramework="4.0"></compilation>
<customErrors mode="Off"/>

原创粉丝点击