Problem in postback after populating dropdown using clientside script
-
Hi, I have populated a dropdownlist using javascript.After that whenever I post the page using any button or anything I get 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. Please give me a solution to this problem.
CC26
-
Hi, I have populated a dropdownlist using javascript.After that whenever I post the page using any button or anything I get 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. Please give me a solution to this problem.
CC26
-
set: EnableEventValidation="false" this will solve your problem
Regards Aman Bhullar www.arlivesupport.com[^]
will it affect any other control's event?
CC26
-
set: EnableEventValidation="false" this will solve your problem
Regards Aman Bhullar www.arlivesupport.com[^]
It works.thanks
CC26