Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: TimeOut People

  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Posts
    179
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Exclamation TimeOut People

    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.

    Code:
    <% 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?
    Last edited by sasha85; 09-28-2007 at 04:44 PM.

  • #2
    Regular Coder
    Join Date
    Sep 2007
    Posts
    120
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Make sure the page performs it's task BEFORE the timeout.
    What's taking so long?

    Tom

  • #3
    Regular Coder
    Join Date
    Sep 2007
    Posts
    179
    Thanks
    4
    Thanked 0 Times in 0 Posts

    the page performs upload...and after 90 sec it gives error..

    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"?

  • #4
    Regular Coder
    Join Date
    Sep 2007
    Posts
    120
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Try This:

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

    HTH, Tom

  • #5
    Regular Coder
    Join Date
    Sep 2007
    Posts
    179
    Thanks
    4
    Thanked 0 Times in 0 Posts

    i got all this...and still i get the page cannot be dispalyed

    this is part of the code
    Code:
    Set Upload = Server.CreateObject("Persits.Upload.1") 
    
    On Error Resume Next
    Upload.OverwriteFiles = False
    Upload.SetMaxSize 555555, True
    Upload.Save 
    
    
    Path = Server.MapPath("\upload") & "\" & "subdir666"
    
    Upload.CreateDirectory Path, True
    
    
    
    If Err.Number <> 0 Then 
    	response.write "we got a big Prob"
    Else 
    	On Error GoTo 0
    
    For Each File in Upload.Files


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


    and now i got

    Code:
    Active Server Pages error 'ASP 0113' 
    
    Script timed out 
    
    /comersus/angebot044.asp 
    
    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.
    Last edited by sasha85; 09-28-2007 at 05:17 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •