hi.i got this error when i kept datalist control in update panel...In datalist control i kept one image button when i click the image button i got this type of 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.
Then i found a way to fix this error....
To fix:
To fix the error add Enableviewstate ="false" in datalist..
<asp:DataList Width="100%" ID="DataList1" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" DataKeyField ="ID" EnableViewState ="false">
By adding this code the error will be fixed.......
i hope this one be useful to all.........
0 comments:
Post a Comment