Global Timeout Time
If you have more than one Web site on the server, you want to set the timeout time uniformly, you need to set the Executiontimeout property value in the Machine.config file.
The Machine.config file is located in the%systemroot%\microsoft.net\framework\%versionnumber%\config\ directory.
For example:
 
 
  
  Copy Code code as follows: 
 
 
  
 
 
Single site timeout time 
 
To set the HTTP request run time in the Web.config configuration file: 
 
 
  
  Copy Code code as follows: 
 
 
  
 
  
  
<system.web> 
  
</system.web> 
  
 
 
 
  
Set here for 720 seconds, the previous attribute maxRequestLength is generally used for user upload file limit size! The default is typically 4096 KB (4 MB). 
 
 
single page Request Timeout 
 
For a single page, you can use Server.ScriptTimeout to set the timeout. 
 
 
  
  Copy Code code as follows: 
 
 
  
 
  
  
Server.ScriptTimeout = 120; 
  
 
 
 
  
Note: If you set the Debug property in Web.config, for example: <compilation debug= "true" targetframework= "4.0" > 
At this point, ScriptTimeout will be ignored.