我有一个基本的网络论坛,人们填写并发送电子邮件。我在网站上有大约二十几个。一个人出于某种原因没有在IE中工作。它可以在Firefox,Chrome,Opera等中运行和发送......
IE error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Invalid postback or callback argument. Event validation is enabled using 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.
Description: An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and where
it originated in the code.
Exception Details: System.ArgumentException: Invalid postback or callback argument.
Event validation is enabled using 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.
来源错误:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
堆栈追踪:
[ArgumentException: Invalid postback or callback argument. Event validation is enabled
在配置中使用或&lt;%@ Page EnableEventValidation =“true”%&gt;在一个页面中。出于安全考虑,此功能可验证回发或回调事件的参数是否来自最初呈现它们的服务器控件。如果数据有效且预期,请使用
ClientScriptManager.RegisterForEventValidation方法以便注册
用于验证的回发或回调数据。]
System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId,String argument)+159
System.Web.UI.Control.ValidateEvent(String uniqueID,String eventArgument)+108
System.Web.UI.WebControls.DropDownList.LoadPostData(String postDataKey,
NameValueCollection postCollection)+55
System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.LoadPostData(Stri ng postDataKey,NameValueCollection postCollection)+11
System.Web.UI.Page.ProcessPostData(NameValueCollection postData,Boolean fBeforeLoad)+353
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +1194
答案 0 :(得分:1)
内置不接受 html 或IIS服务器aspx页面上的代码。
这是一个安全风险,但它会让一切都飞到服务器上。
<%@ Page ValidateRequest="false"
您可能应该对客户端上的数据进行编码,以便安全地飞到服务器上。
OR
获取服务器端的所有数据然后在那里验证..它由你决定