ADO » DataControl » URL

Version: 2.5

Syntax:
string = datacontrolobject.URL
datacontrolobject.URL = string

Sets or returns a relative or absolute URL.

The URL property sets a string that is a relative or absolute URL of an Active Server Page (ASP) that can return a Recordset object. This allows creating the Recordset without using the DataFactory object or a similar custom COM component.

The purpose of this property is to allow the use of XML with the DataControl object.

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.

Examples

Code:
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

See Also: