I have a Datagrid in my asp.net Web Application, that displays about 10000 records with Paging. The Datagrid displays find but when I click on page "10" for example I get the error message as 

> 
> Maximum Request Length Exceeded
> 
> 
> 

I searched online for similar questions but most of the solutions are for people who are uploading files not for `Datagrid paging problems`. 

I tried adding 

```
<security>
    <requestFiltering>
         <requestLimits maxAllowedContentLength="1073741824" />
      </requestFiltering>
   </security>

```

in my `web.config`, 
`system.webserver` section but I still got the same problem.