O'Reilly Forums: Datalist: Select Item Operation (pp. 442-443) - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Datalist: Select Item Operation (pp. 442-443) Exception thrown

#1 User is offline   Wissensdurst 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 13
  • Joined: 23-August 08

Posted 29 July 2009 - 08:01 AM

Dear Sir,

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.

Eric
0

#2 User is offline   Wissensdurst 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 13
  • Joined: 23-August 08

Posted 29 July 2009 - 08:33 AM

Sorry, Folks.

I have figured out the cause of the problem. In Page_Load I had the data source refreshed, even on postbacks.

Eric
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users