Very famous error message (see below), judging by the number of Google results. But every one of them I ve seen suggests to set EnableEventValidation
to false
. I have searched my entire codebase, and I cannot find the string "EnableEventValidation" anywhere. Moreover, this code used to work; something I have done has obviously broken the pages. But what?
当我点击Telerik RadGrid的一顿时,该错误发生:
<telerik:RadGrid ID="MyGrid" Width="100%" ItemStyle-BorderColor="Gainsboro"
ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1px" ActiveItemStyle-BackColor="Bisque"
SelectedItemStyle-BackColor="Black" AllowPaging="True" PageSize="15" runat="server"
AllowSorting="true" OnItemCommand="MyGrid_ItemCommand" AutoGenerateColumns="false"
OnNeedDataSource="MyGrid_NeedDataSource" GridLines="Horizontal" AllowMultiRowSelection="false"
Skin="Black">
<GroupingSettings CaseSensitive="false" />
<MasterTableView Width="100%" DataKeyNames="ID" AllowFilteringByColumn="false" Font-Names="Arial"
Font-Size="10px">
<Columns>
<telerik:GridButtonColumn ButtonType="PushButton" Text="Cancel" CommandName="Cancel"
ConfirmText="Are you sure you want to cancel this?">
</telerik:GridButtonColumn>
...
</Columns>
</MasterTableView>
<PagerStyle Mode="NextPrevAndNumeric" />
<FilterMenu EnableTheming="True">
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
</telerik:RadGrid>
点击“Cancel”纽吨,这里引出了著名的错误:
<编码> 无效的背后或背叛论点。 活动验证使用“带”;页面使EventValidation=“true”/> 配置或设计;%@p EnableEventValidation=“true” %> 网页。 为了安全起见,这一特点证明,关于退税或退税事件的论据源自服务器控制,而服务器控制最初正是这样。 如果数据有效且预期,则使用《客户手册》。 登记通风方法,以便登记回馈或回数据以供验证。