Maximum request length exceeded
I have an aspx web page that has a button using NavigateURL to point to the
startup page. I am getting the following error opening the startup page
(Default.aspx) when I have a very large GridView displayed in the preceding
page. Can anyone help resolve? Thanks.
An unhandled exception occurred:
Message: Maximum request length exceeded.
at System.Web.UI.Page.GetCollectionBasedOnMethod(Bool ean dontReturnNull)
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Re: Maximum request length exceeded
The web.config change worked, thanks.
"Brian Cryer" wrote:
> "DavidC" <email@example.com> wrote in message
> >I have an aspx web page that has a button using NavigateURL to point to the
> > startup page. I am getting the following error opening the startup page
> > (Default.aspx) when I have a very large GridView displayed in the
> > preceding
> > page. Can anyone help resolve? Thanks.
> > An unhandled exception occurred:
> > Message: Maximum request length exceeded.
> Have you tried increasing the maxRequestLength in web.config, ie:
> <httpRuntime maxRequestLength="8192" />
> I know that helps when uploading files - resolves the same (or similar)
> As an alternative appraoch, I'm guessing that if your GridView is very large
> then that page has an enormous viewstate, and the page is probably quite
> slow to load (partly but not just because of the large viewstate). Is it
> feasible to turn viewstate off for the gridview?
> Brian Cryer
|All times are GMT. The time now is 07:55 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.