Jump to content
Datalist: Select Item Operation (pp. 442-443)
1 reply to this topic
Posted 29 July 2009 - 08:01 AM
When I tried the operation described in the section "Selecting a record" on pp. 442 and 443 of your book, I got the following exception message from the browser:
"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."
This message appeared when I clicked on a Select button.
Could you please explain what is going on here and what should be done to avoid it?
Thank you for your trouble.
Posted 29 July 2009 - 08:33 AM
I have figured out the cause of the problem. In Page_Load I had the data source refreshed, even on postbacks.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users