检测到潜在危险的Request.Form值&无效的回发或回调参数 [英] potentially dangerous Request.Form value was detected & Invalid postback or callback argument
问题描述
何时,
ValidateRequest = true
获取错误:
有潜在危险从客户端检测到Request.Form值(ctl00 $ ContentPlaceHolder1 $ ckDescription =
错误可能性: HTML标签Ckeditor。
当,
ValidateRequest = false
获取错误:
无效的回发或回调参数。使用配置中的< pages enableeventvalidation =true>或<%@ Page EnableEventValidation =true%>来启用事件验证为了安全起见,此功能验证回发或回调事件的参数是否来自最初呈现它们的服务器控件。如果数据有效且符合预期,请使用Clien tScriptManager.RegisterForEventValidation方法,以便注册回发或回调数据以进行验证。
错误可能性:动态填充列表框
ContentPlaceHolder1
ckDescription =
错误可能性: Ckeditor中的HTML标签。
何时,
< pre lang =c#> ValidateRequest = false
获取错误:
无效的回发或回调参数。使用< pages enableeventvalidation =true>启用事件验证在配置或<%@ Page EnableEventValidation =true%>在一个页面中。出于安全考虑,此功能可验证回发或回调事件的参数是否来自最初呈现它们的服务器控件。如果数据有效且符合预期,请使用ClientScriptManager.RegisterForEventValidation方法注册回发或回调数据以进行验证。
错误可能性:动态填写列表框
<%@ 页 EnableEventValidation = true < pre lang = xml > ValidateRequest = false %& gt;
& lt; pre lang = & QUOT; XML&安培; QUOT;&安培; GT;&放大器;放大器; LT;&的System.Web放大器;放大器; GT;
& amp; lt; pages enableEventValidation = & amp; quot; false& ;安培; QUOT; /&放大器;放大器; GT;
& amp; lt; /system.web& amp; gt ;&安培; LT /预&安培; GT;< /预> 跨度>
When,
ValidateRequest="true"
Getting Error :
A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$ckDescription="
Error Possibilities : HTML tags in Ckeditor.
When,
ValidateRequest="false"
Getting Error :
Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Error Possibilities : Filling Listboxs dynamically
ContentPlaceHolder1
ckDescription="
Error Possibilities : HTML tags in Ckeditor.
When,
ValidateRequest="false"
Getting Error :
Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Error Possibilities : Filling Listboxs dynamically
<%@ Page EnableEventValidation="true" <pre lang="xml">ValidateRequest="false" %> <pre lang="xml">&lt;system.web&gt; &lt;pages enableEventValidation=&quot;false&quot;/&gt; &lt;/system.web&gt;</pre></pre>
这篇关于检测到潜在危险的Request.Form值&无效的回发或回调参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!