DataList Updating Problem
-
i m working on DataList Updating. for that i have taken one label and ImageButton in ItemTemplate of DataList. I have bound data to DataList in Page_Load Event, When i trying to perform editing in DataList then i m getting following error- Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: 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. AND if i m using Response.write() in postback then i m getting following error- Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. But if i m writting binding code in !IsPostBack then it is working . AND if i m using LinkButton instead of ImageButton then it is working . So plz tell me wht is the oproblen and how can i solve this problem thank's