我有一个sharepoint webpart,我使用下面的控件:
<asp:DropDownList runat="server" ID="ddlCategory">
</asp:DropDownList>
<asp:ListBox runat="server" ID="ddlHSESubCategory" SelectionMode="Multiple">
</asp:ListBox>
稍后我将使用jquery ajax调用设置选项。当页面回发后,我得到以下错误:
Event validation is enabled using <pages enableEventValidation="true"/>
in configuration or <%@ Page EnableEventValidation="true" %> in a page.
由于我正在构建webpart,因此我无法设置enableEventValidation = false,因为我无权访问pages指令,并且可以将此webpart插入任何页面。
我该如何克服这个?