View Full Version : TimeOut People

09-28-2007, 02:20 PM
that's how we set timeout..

The timeout property determines how long the component should wait for a response from the HTTP server. The default timeout is 90 seconds.

<% Server.ScriptTimeout = 360 %>

You can increase timeout time from the ASP script itself by using Server.ScriptTimeOut property:
Server.ScriptTimeout = NumSeconds

For example, if you want 100 seconds: Server.ScriptTimeout = 100

my server after the 90 seconds i got the page cannot be displayed...
is there a way to limit the timeout and when the time will come to the end it will take the user to a specific file and not show to him that the page cannot be displayed?

how can i do some error trapping to prevent the users from seeing the "canot display page" and to redirect him to other page?

Whatever Jr.
09-28-2007, 03:26 PM
Make sure the page performs it's task BEFORE the timeout.
What's taking so long?


09-28-2007, 04:21 PM
i just want to trap the error and view some html...
do you know how to make a error trapping to prevent the users from seeing the "canot display page"?

Whatever Jr.
09-28-2007, 04:33 PM
Try This:

If Err.number <> 0 Then
'Do stuff
End if

HTH, Tom

09-28-2007, 04:55 PM
this is part of the code

Set Upload = Server.CreateObject("Persits.Upload.1")

On Error Resume Next
Upload.OverwriteFiles = False
Upload.SetMaxSize 555555, True

Path = Server.MapPath("\upload") & "\" & "subdir666"

Upload.CreateDirectory Path, True

If Err.Number <> 0 Then
response.write "we got a big Prob"
On Error GoTo 0

For Each File in Upload.Files

i added <%@ TRANSACTION=Required LANGUAGE="VBScript" %>

and now i got

Active Server Pages error 'ASP 0113'

Script timed out


The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.