为了增加请求超时仅在特定的Web页在特定、Web

2023-09-04 02:39:41 作者:休思

是否有可能增加请求超时只是一个特定的网页?我工作的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>