ASP.NET events do not fire on a page that contains a large GridView control

I have a GridView control on an ASP page that I attached to a large (ish) data source (about 10 thousand rows, with 24 varchar (50) columns). The page also has a separate control (i.e. Not in the GridView).

The problem is this: clicking the button does not cause PageLoad or Button___click events, all I get is the "The page cannot be displayed" error.

Interestingly, if I reduce the size of the dataset behind the GridView, everything will be fine and events will be fired as expected. Therefore, I assume that this is some kind of timeout or overflow associated with the amount of data on the page.

I don’t really want to use paging if I succeed, so the question is, is there some kind of timeout or parameter that I can change to allow processing of large data grids?

+3
source share
1 answer

Have you tried disabling ViewState (EnableViewState = false in your page) on your page? I would suggest that with a 1.2 MB table, the ViewState is quite huge and can be overwhelming the processing of parameters on the page.

+2
source

All Articles