Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server.ScriptTimeout

Status
Not open for further replies.

arkadia93

Programmer
Oct 19, 2006
110
GB
I am opening a recordset and using it to populate a table, but I keep getting the error :

'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.'

How do I apply Server.ScriptTimeout to my recordset/connection/command etc? Do I just need to put Server.ScriptTimeout = 120 at the top of my page and it will automatically apply to all objects?
 
Think you are right, you can reset the timeout using:

Code:
<% Server.ScriptTimeout = 100 %>

Where 100 is in seconds...
 
Yes, setting Server.ScriptTimeout will apply to all scripts that run within the current asp session.

<.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top