"超过最大请求长度"在大型的Datagrid分页时 [英] "Maximum Request Length Exceeded" when paging in large Datagrid

查看:209
本文介绍了"超过最大请求长度"在大型的Datagrid分页时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个DataGrid在我的asp.net Web应用程序,与分页显示约10000条记录。 DataGrid显示找到,但当时我的页面10点击比如我收到错误消息为

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

超过最大请求长度

我在网上搜索了类似的问题,但大多数解决方案是谁不上传文件的Datagrid分页问题的人。

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

我尝试添加

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

在我的的web.config
system.webserver 部分,但我仍然有同样的问题。

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

推荐答案

在这种情况下,你需要检查的,你正在做的功能的复杂性。在你的情况,你在你的网格显示大量数据的的

In such case, you need to check the complexity of the functionality which you are doing. In your case, you are displaying a large number of data's in your grid.

由于这里提到。如果您在使用 IIS 7 ,你必须要在你的web.config文件中添加下面一行code作为它允许插入这是在你的情况需要大量的数据

As mentioned here. If you are using IIS 7, you must need to add the below line of code in your web.config file as it allows to insert a large amount of data which is required in your case.

<system.webserver>
<security>
  <requestFiltering>
     <requestLimits maxAllowedContentLength="1073741824" />
  </requestFiltering>
</security>

希望这是一个意义上如何处理大量复杂数据位。 :)

Hope this makes a sense a bit on how to handle large complexity data. :)

这篇关于&QUOT;超过最大请求长度&QUOT;在大型的Datagrid分页时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆