当我的数据绑定控件发生事件(添加/编辑/删除)时,我收到以下错误.
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控件(也可能与其他数据绑定控件)也会出现此问题.