G
Guest
Hi,
I have some problems with setting Server.ScriptTimeout. The posted script
doesn't
stop after 120 seconds (the timestamps are displayed after the 120 seconds
and I stopped the server after 5 minutes;-)
Is this a bug in asp.net and is there a simple workaround?
I tested this issue with Framework 1.1 (with and without SP1).
Script:
public class Test : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
Server.ScriptTimeout = 120;
while(true)
{
Response.Write(DateTime.Now.ToLongTimeString() + "<BR>");
Response.Flush();
Thread.Sleep(1 * 1000);
}
}
.....
I have some problems with setting Server.ScriptTimeout. The posted script
doesn't
stop after 120 seconds (the timestamps are displayed after the 120 seconds
and I stopped the server after 5 minutes;-)
Is this a bug in asp.net and is there a simple workaround?
I tested this issue with Framework 1.1 (with and without SP1).
Script:
public class Test : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
Server.ScriptTimeout = 120;
while(true)
{
Response.Write(DateTime.Now.ToLongTimeString() + "<BR>");
Response.Flush();
Thread.Sleep(1 * 1000);
}
}
.....