Jump to content


Photo

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


  • Please log in to reply
1 reply to this topic

#1 Wissensdurst

Wissensdurst

    Active Member

  • Members
  • PipPip
  • 13 posts

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

#2 Wissensdurst

Wissensdurst

    Active Member

  • Members
  • PipPip
  • 13 posts

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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users