webForumDet fria alternativet

scripttimeout iiiuuuuäää

3 svar · 246 visningar · startad av Nöff

NöffMedlem sedan nov. 2003569 inlägg
#1

Page.Server.ScriptTimeout=1;
while(DateTime.Now<DateTime.Parse("2004-04-06 13:27:00"))
{

}

testade denna loopen, skulle kolla om om ScriptTimeout funkade, men det gjorde den inte :l . Den bara fortsatte tills while loopen avslutade sig själv. Nån som vet varför?

VimpMedlem sedan juli 20022 537 inlägg
#2

Testa det här:

HttpContext.Current.Server.ScriptTimeOut=1;
NöffMedlem sedan nov. 2003569 inlägg
#3

ne, det funka inte det heller.

nikoMedlem sedan juni 20022 599 inlägg
#4

Om du kör IIS 5 så kanske svaret finns på MSDN?

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.

Källa

BTW: Bra trådrubrik. Ser verkligen seriöst ut.

135 ms totalt · 3 externa anrop · v20260731065814-full.30151723
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
132 ms — hämta tråd, inlägg och bilagor (db)