Server.ScriptTimeout
Server.ScriptTimeout= seconds
The timeout is actually the larger of this value and that in the Registry.