Results 1 to 6 of 6

Thread: (RESOLVED) Managing Page TimeOut

Threaded View

  1. #1

    Thread Starter
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657

    Resolved (RESOLVED) Managing Page TimeOut

    Hello,
    Currently in my ASP.NET app, I have a timeout feature as requested by the client, implemented as follows in Javascript in my master page (onload event):
    Code:
    setTimeout("location.href = 'timeout.aspx';", 300000);
    So essentially the page will timeout in 5 minutes. This works fine.

    However, I would like to suspend this in one instance, where we have a file upload, and would like to know the best way to go about it (i.e. should I use Server.ScriptTimeout here?) Something like:
    Code:
            ' Server.ScriptTimeout for one hour?  
            Try
                FileUpload1.SaveAs("whatever")
            Catch ex As Exception
                lblErrMsg.Text = "ERROR: " & ex.Message.ToString()
            Finally
                ' set timeout back to 5 minutes
            End Try
    Last edited by BruceG; Oct 20th, 2009 at 01:04 PM. Reason: resolved
    "It's cold gin time again ..."

    Check out my website here.

Posting Permissions

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



Click Here to Expand Forum to Full Width