DataSpace InternetTimeout Property
DataControl Object
PROPERTY: DataControl::InternetTimeout
long =
datacontrolobject.
InternetTimeout
datacontrolobject.
InternetTimeout
= long
The
InternetTimeout
property sets or returns a long value that is the number of milliseconds to wait before an HTTP or HTTPS request is timed out.
The default is 5 minutes which is 300000 milliseconds:
(5 minutes)x(60 seconds per minute) x(1000 milliseconds per second).
Since requests can only be sent using either the HTTP or HTTPS protocol and may on occassion take longer than 5 minutes, you can specify additional time to prevent a time out. If a time out does occur, an error message will be generated.
Note that this does not override the server timeout.
You can create a form on a Web page to input values for the various
DataControl
properties and use
Request.Form( )
to assign the values:
Code (VBScript):
objDC.ExecuteOptions = Request.Form("ExecuteOptions")
objDC.FetchOptions = Request.Form("FetchOptions")
objDC.
InternetTimeout
= Request.Form("InternetTimeout")
objDC.Server = Request.Form("Server.Value")
objDC.SourceRecordset = Request.Form("SourceRecordset")
objDC.SQL = Request.Form("SQL")
objDC.URL = Request.Form("URL")
objDC.Connect = Request.Form("Connect")
objDC.Refresh
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information