"超过最大请求长度"在大型的Datagrid分页时 [英] "Maximum Request Length Exceeded" when paging in large 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屋!