DataGrid button - Invalid Postback or Callback

此生再无相见时 提交于 2019-12-06 06:10:32

Ok, lets see where the error comming from.

The GridView is use the __DoPostBack() javascript call and have no input by him self. So by him self is not send any input data from other cells.

Now I think that you do not have made custom DoPostBack calls - right ?

The second point that there is a validation is on ViewState Data.

Is by any change to use any UpdatePanel and in the middle you make any update that change this ViewState ?

What I suggest you to try is to send EnableViewState="false" on your GridView To see if you still get this error. This is not affect you because GridView in every update re-read the data that needs to created.

And the second point that you need to check, is the point that you change your data and afect the view state. Maybe by place it in other point solve the issue. From example if you have it on Page_Load maybe you need to move it on PageInit - or vise versa.

Hope this help.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!