All the data in the grid had loaded and was displayed long before I clicked any of the Paging buttons.
The error is because I am setting the Datagrid data programatically as part of the Page_Load event.
Everywhere else on the site I bind the Datagrid to a DataSourceControl then trap the Selecting event of the DataSource and set the e.result property to the data returned.
I changed this page to do the same and now it is working fine. I guess it doesn't like you setting the DataGrid in the Page_Load event.
Thanks
Steve
Marked as answer by sjnaughton on May 05, 2009 03:53 PM
steddyman
Member
23 Points
82 Posts
Re: PageRequestManagerServerErrorException with asp:GridViewPager
May 05, 2009 02:33 PM|LINK
Hi
All the data in the grid had loaded and was displayed long before I clicked any of the Paging buttons.
The error is because I am setting the Datagrid data programatically as part of the Page_Load event.
Everywhere else on the site I bind the Datagrid to a DataSourceControl then trap the Selecting event of the DataSource and set the e.result property to the data returned.
I changed this page to do the same and now it is working fine. I guess it doesn't like you setting the DataGrid in the Page_Load event.
Thanks
Steve