为了增加请求超时仅在特定的Web页 [英] To Increase Request Timeout only on particular Web Page

查看:192
本文介绍了为了增加请求超时仅在特定的Web页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能增加请求超时只是一个特定的网页?我工作的ASP.Net 4.0,我需要一个特定的页面上有一个较长的请求超时,因为它负责发起一个长时间运行的进程。谢谢。

Is it possible to increase the request timeout for just the one particular web page? I am working on ASP.Net 4.0 and I need one particular page to have a longer request timeout, since it is responsible for initiating a long running process. Thanks.

推荐答案

使用Web.config文件:

Use Web.config:

<location path="Page.aspx">
    <system.web>
        <httpRuntime executionTimeout="180"/>
    </system.web>
</location>

这篇关于为了增加请求超时仅在特定的Web页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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