Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server."

前端 未结 27 2421
遇见更好的自我
遇见更好的自我 2020-12-13 18:03

I have couple of update panels and jquery tabs on page. And also I am loading couple user controls on update panels. After user waited for couple of minutes (not checked the

27条回答
  •  囚心锁ツ
    2020-12-13 18:34

    I had this issue when I upgraded my project to 4.5 framework and the GridView had Empty Data Template. Something changed and the following statement which previously was returning the Empty Data Template was now returning the Header Row.

    GridViewRow dr = (GridViewRow)this.grdViewRoleMembership.Controls[0].Controls[0];
    

    I changed it to below and the error went away and the GridView started working as expected.

    GridViewRow dr = (GridViewRow)this.grdViewRoleMembership.Controls[0].Controls[1];
    

    I hope this helps someone.

提交回复
热议问题