I have the following Listview defined
<asp:ListView
ID="reportData"
EnableSortingAndPagingCallback="True"
AllowPaging="True"
AllowSorting="True"
PageSize="20"
OnLayoutCreated="LoadReport"
onsorting="reportData_Cause_Sorting"
OnPagePropertiesChanging="reportData_PagePropertiesChanging"
runat="server">
I also have a DataPager defined
<asp:DataPager ID="reportPager" PagedControlID="reportData" PageSize="20" runat="server" >
<Fields>
<asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowLastPageButton="True" />
</Fields>
</asp:DataPager>
Then, since i Have enableEventValidation set to true, i also have the item registered
Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
Page.ClientScript.RegisterForEventValidation(reportData.UniqueID)
Page.ClientScript.RegisterForEventValidation(reportPager.UniqueID)
MyBase.Render(writer)
End Sub
My Initial page load runs just fine, however when I click on a page navigation I am sent to the codebehind and get through the page_load before I receive the error
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.
I just don't understand why I am continuing to receive the error after I have registered both items for event validation. I never even make it into the RaiseCallbackEvent!
I am a total newbie to these controls and by no means a .net expert either. Any help or advice would be greatly appreciated!