Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ScriptTimeout

Reply
Thread Tools

ScriptTimeout

 
 
Ted Burhan
Guest
Posts: n/a
 
      11-21-2003
Can anyone please explain to me what Server.ScriptTimeout actually is?
I don't quite understand the explanation in the documentation.

In my aspx page, I typed in the following codes:

private void Page_Load(object sender, System.EventArgs e)

{

Server.ScriptTimeout = 2;

for (int i = 0;i < 10;i++)
Thread.Sleep(1000);

}

but the request wasn't timed out. So I figure that
I must be misunderstanding something here.
Anyone please...

Ted


 
Reply With Quote
 
 
 
 
SSW
Guest
Posts: n/a
 
      11-21-2003
Hi!

Server.ScriptTimeout = NumSeconds

A default ScriptTimeout can be set for a Web service or Web server by using
the AspScriptTimeout metabase property. The ScriptTimeout property cannot be
set to a value less than that specified in the metabase. For example, if
NumSeconds is set to 10, and the metabase setting contains the default value
of 90 seconds, scripts will time out after 90 seconds. However, if
NumSeconds were set to 100, the scripts would time out after 100 seconds.

Thread.Sleep(1000); // Thread sleeps for 1 Sec ie. 1000 Millisec
Below is sample: Script time out( Thread Sleep for 500 Second greater the 90
Second)
private void Page_Load(object sender, System.EventArgs e)
{
Server.ScriptTimeout = 90;
for (int i = 0;i < 500;i++)
Thread.Sleep(1000);
}

Below is sample: Script time Don't time out( Thread Sleep for 50 Second less
the 90 Second)
private void Page_Load(object sender, System.EventArgs e)
{
Server.ScriptTimeout = 90;
for (int i = 0;i < 50;i++)
Thread.Sleep(1000);
}

HTH

Thanks,

sswalia
MCSD, MCAD, OCA

"Ted Burhan" <> wrote in message
news:u3IloX#...
> Can anyone please explain to me what Server.ScriptTimeout actually is?
> I don't quite understand the explanation in the documentation.
>
> In my aspx page, I typed in the following codes:
>
> private void Page_Load(object sender, System.EventArgs e)
>
> {
>
> Server.ScriptTimeout = 2;
>
> for (int i = 0;i < 10;i++)
> Thread.Sleep(1000);
>
> }
>
> but the request wasn't timed out. So I figure that
> I must be misunderstanding something here.
> Anyone please...
>
> Ted
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ScriptTimeout and executionTimeout do not work Arsen V. ASP .Net 3 05-04-2005 07:40 AM
How do I capture a ScriptTimeOut in C#? =?Utf-8?B?TXVkcGll?= ASP .Net 0 12-23-2004 09:17 PM
Issues with Server.ScriptTimeout =?Utf-8?B?c3J0?= ASP .Net 0 09-01-2004 08:43 AM
Issues with Server.ScriptTimeout (and HttpContext.Current.Server.ScriptTimeout) Anthony Williams ASP .Net 8 08-26-2004 01:11 PM
ASP.NET Server.ScriptTimeout being ignored =?Utf-8?B?Q2hyaXM=?= ASP .Net 1 05-14-2004 09:38 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57