I was searching through your book to see if I could find a solution to this, but I didn't seem to find it in there hopefully you can help me.
I am setting the datasource of my list view programatically (in the code behind), and due to this the datapager I am trying to use doesn't seem to be working as it would in the book (when you assign the datasource of the listview via the menus within visual web developer). The buttons do appear but they do nothing but just refresh the page (cause a post back).
Do you have any idea on what I could do here?
When I try to just throw a datapager onto the page and assign it to the Listview I'm defining in the code I get this error:
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> 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.