保存Web表单时发生错误 [英] Error Occured When I save my web form

查看:52
本文介绍了保存Web表单时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网络表单中,我正在使用Jquery和Javascript进行弹出窗口和客户端验证.

在弹出窗口中,我使用javascript添加组合框项目.一切都很好.
但是当我保存表格时
发生以下错误

In my webform I am using Jquery and Javascript for popup window and clientside validation.

In the popup window I add the combobox item using javascript. It''s all works well.
But When I save the form
The following error occurs

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.




如果删除更新面板,则在组合框中选择新的additem时,会发生上述错误

为什么?帮我....




If I remove the update panel, when I select newly additem in the combobox, the above error is occured

Why? help me....

推荐答案

简单/直接的解决方案可以在您的Page指令或Web.config文件中添加enableEventValidation="false".
此处的详细说明:无效的回发或回调参数解决方案.事件验证... [ ^ ]

有趣的是阅读一个与此相关的博客条目: [
Easy/direct solution can be adding enableEventValidation="false" in your Page directive or Web.config file.

Detailed explanation here: Invalid postback or callback argument solution. Event validation...[^]

Interesting to read one blog entry related to same: "Invalid postback or callback argument" in ASP.NET[^] - It exposes few other reasons on why one can get the same error. Nice read.


在@page标记集enableEventValidation ="false"中,您会解决
in the @page tag set enableEventValidation="false" you get resolved


这篇关于保存Web表单时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆