当我的数据绑定控件发生事件(添加/编辑/删除)时,我收到以下错误.
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.
我正在使用自定义的DataList控件,但是GridView,DetailsView,FormView和Repeater控件(也可能与其他数据绑定控件)也会出现此问题.
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。