“连接已重置";单击ASP.Net中的按钮后. [英] "The connection was reset" after clicking on a button in ASP.Net.

查看:475
本文介绍了“连接已重置";单击ASP.Net中的按钮后.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面,其中我将一个网格与一个大表绑定在一起,然后,当我单击将网格导出到Excel工作表的按钮时,我在firefox浏览器中收到连接已重置"的信息.使用Chrome浏览器完成相同操作后,我得到与本地主机的连接已中断."
当我将较少的数据绑定到网格中时,它工作正常.
我调试了代码,发现在将网格加载到页面中并单击按钮以将其导出到Excel后,页面甚至都没有进入按钮的Click事件.

请帮我解决这个问题.我相信这不是浏览器配置问题,因为我已经检查过它.

I have a page where i am binding a grid with a big table and after that when i am clicking on Button which exports the grid to an Excel Sheet, I am getting "The connection was reset" in firefox Browser.When i done the same with Chrome Browser i get "The connection to localhost was interrupted."
It is working fine when i am Binding less data in to the grid.
I debug the code and found that after the grid load in to the page and when we are clicking on the Button to export it in to Excel, the page is not even going to the Click event of the button.

Please help me to solving this issue. I beleve it is not an browser config issue as i already checked it .

推荐答案

<!-- Required to upload big files -->
        <httpRuntime executionTimeout="600" maxRequestLength="51200"  />


This specifies a timeout of 10 minutes and max filesize of 50Mb.









Place this in web config <system.web section=""></system.web>


这篇关于“连接已重置";单击ASP.Net中的按钮后.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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