增加.ashx的超时

时间:2010-11-08 15:21:19

标签: c# ashx

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

1 个答案:

答案 0 :(得分:12)

您可以增加服务器超时:

public void ProcessRequest(HttpContext context)
    {
        context.Server.ScriptTimeout = 3600;
        context.Response.ContentType = "text/plain";
        context.Response.Write("Hello World");
    }
相关问题