Problem with datalist control (imagebutton)
-
In a datalist control i have a imagebutton with command name="Cancel" but when i click that in the datalist i am getting 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.
-
In a datalist control i have a imagebutton with command name="Cancel" but when i click that in the datalist i am getting 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.
Hi, Try this tag on page. <pages validateRequest="false" enableEventValidation="false" /> but it is not recommended because it is security feature so that disabling it should be considered carefully.
Regards, Jamil