6
Reply

postback page error

Ask a question
hi,
i am developpin one application with master page
in the content page i take one datalist and in that one button control is there i want to handle that event when click with item command but when i click it shows the following 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.


but in either web.confi or page directive can't have

enableEventValidation="true"

how to resolve it

Answers (6)