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):
So essentially the page will timeout in 5 minutes. This works fine.Code:setTimeout("location.href = 'timeout.aspx';", 300000);
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


Reply With Quote

