7

简单的问题:我需要增加 ashx 的超时时间。

4

1 回答 1

13

您可以只增加服务器超时:

public void ProcessRequest(HttpContext context)
    {
        context.Server.ScriptTimeout = 3600;
        context.Response.ContentType = "text/plain";
        context.Response.Write("Hello World");
    }
于 2010-11-08T15:30:07.127 回答