网站后台更新新闻文章点保存出现错误怎么解决,ASP.net4.0
ServerErrorin'/'Application.ApotentiallydangerousRequest.Formvaluewasdetectedfromthec...
Server Error in '/' Application.A potentially dangerous Request.Form value was detected from the client (txtBody="<p>我们的生活被所有的工作所代替,已经...").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.
Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (txtBody="<p>我们的生活被所有的工作所代替,已经...").
Source Error:
Source File: c:\windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\1736e117\1bf547da\App_Web_vl1wvkr1.12.cs Line: 0 展开
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.
Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (txtBody="<p>我们的生活被所有的工作所代替,已经...").
Source Error:
Source File: c:\windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\1736e117\1bf547da\App_Web_vl1wvkr1.12.cs Line: 0 展开
3个回答
壹寰(深圳)科技文化有限公司
2021-03-27 广告
2021-03-27 广告
要找正规专业的公司,行业口碑也比较重要。如果想了解更多详细信息,可以咨询下壹寰(深圳)科技文化有限公司。91数据恢复是壹寰(深圳)科技文化有限公司旗下专业数据恢复品牌,91数据恢复专注于勒索病毒数据恢复、勒索病毒数据修复、数据库修复、数据库...
点击进入详情页
本回答由壹寰(深圳)科技文化有限公司提供
展开全部
你提交的数据存在特殊编码,ASP.NET检测出于安全考虑,提示错误提醒。
你可以这样解决问题:在Page标签中添加ValidateRequest="false"
<%@ Page ValidateRequest="false" %>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
aspx页面顶部加一句。 ValidateRequest="false"
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SNews_Info.aspx.cs" Inherits="CMS_SNews_Info"
ValidateRequest="false" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SNews_Info.aspx.cs" Inherits="CMS_SNews_Info"
ValidateRequest="false" %>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询