Invalid postback or callback argument. Event validation is enabled using
Loading
Invalid postback or callback argument. Event validation is enabled using
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jayraj ChhayaPosted Jan 12, 2024, 10:32 AM
Hi Rupesh,
This code snippet enables event validation in a VB web application. Event validation is a security feature that ensures that postback or callback arguments originate from the server control that originally rendered them. It helps prevent certain types of attacks, such as cross-site scripting (XSS) attacks.
By setting
EnableEventValidationtotrue, the page will validate the postback or callback data to ensure its integrity and origin. If the data is not valid or expected, an "Invalid postback or callback argument" error will be thrown.To register the postback or callback data for validation, you can use the
ClientScriptManager.RegisterForEventValidationmethod. This method allows you to explicitly specify the valid values for the event arguments, preventing any unauthorized modifications.Sachin SinghPosted Jan 12, 2024, 10:03 AM
are you dynamically adding controls to your page ?
rupesh gourPosted Jan 12, 2024, 9:24 AM
not work
Satyaprakash SamantarayPosted Jan 12, 2024, 8:01 AM
Hi,
Please check below link FYR
https://shorturl.at/ftBDF