0
votes

in my application i have vidoes there with image when i click on any video it is showing this message.

Invalid postback or callback argument. Event validation is enabled using 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.

i place the enbaleEven validation="true" both in webconfig in that particular page. even though it is giving same error

2
How did you created you image buttons? In the ASPX File? Dynamically in Code? In Page_Load? In Page_Init? In OnPreRender? - Arthur
yes u r there Mr. Arthur i got the solution simply in my page load i put my method in ispostback method and it is working fine. - Surya sasidhar

2 Answers

0
votes

We need to see some code. But the easiest way to get rid of the error is to turn off EnableEventValidation, just like it says... Set this to "false" for this page and you won't see the error.

0
votes

simple place your method, that fetch the data from the database in "ispostback" method then it will not give any error. i got the same problem i place the code in ispostback method in page load it is working fine.