Issues with Server.ScriptTimeout

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);
}
}
.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top