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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyaprakash SamantarayRank #101 · 21.1K reputationPosted Jan 12, 2024, 3:01 AM EST
Hi,
Please check below link FYR
https://shorturl.at/ftBDF
rupesh gourRank #6,510 · 264 reputationPosted Jan 12, 2024, 4:24 AM EST
not work
Sachin SinghRank #66 · 26.2K reputationPosted Jan 12, 2024, 5:03 AM EST
are you dynamically adding controls to your page ?
Jayraj ChhayaRank #304 · 8.2K reputationPosted Jan 12, 2024, 5:32 AM EST
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.