Link:http://output.to/sideway/default.asp?qno=130500015 ActiveX Data Objects Component (ADO), ASP Server Component, Built-in Function ASP Server ComponentsThe ASP built-in server components are provided to enhance the usability of ASP technology by adding some built-in components to increase the fundamental capability of ASP technology for creating dynamic and interactive web pages. The two basic built-in server components of ASP technology are the FileSystemObject component and the ActiveX Data Object (ADO) component. The FileSystemObject component is used to manipulate the file system of the server while the ActiveX date Object component is designed for the database manipulation. ActiveX Data Objects ComponentThe ActiveX Data Objects, ADO, is one of the key component of the Microsoft/Windows Data Access Components , MDAC/WDAC, for connecting to different data sources. The ActiveX Data Objects, ADO, provide language-neutral object base features for web-based applications to access and manipultate data from a variety of sources through the OLE DB system interfaces. The parent library of ActiveX Data Objects ADO is the ADODB Library In general, the five major functions of the ActiveX Data Objects, ADO component is DataBase Connection, DataBase Command, Data Recordset, and Data Record, Data Stream manipulation. File NameThe ActiveX Data Objects component is included in the ADODB library of Microsoft Data Access Components, MDAC package. SyntaxSet ADOName = Server.CreateObject("ADODB.IDname") ParametersADOName The parameter "ADOName" is the name assigned to the instance of the ADO object of the ADODB Library created by the call using the Server.CreateObject. IDname The parameter "IDname" is used to specified the name of the type of ADO DataBase object included in the ADODB Library. RemarkAlthough an instance of the Connection object of the ADODB Library has higher hierarchical relationship with other ADO objects in the ADODB Library, ADO objects can also be created outside the scope of the ADO hierarchy. Objects & Collections of ADO ComponentThe ActiveX Data Object, ADO of the ADODB Library component can be used in the ASP page to manipulate the data of the web server. The two major types of the data manipulation are supported by the ActiveX Data Objects, ADO component. For example, Database manipulation, including database querying, and data manipulating and displaying, Data stream and file manipulation, such as Saving data into an XML file, binary or XML stream, or retrieving an Data stream. The ActiveX Data Object, ADO of the ADODB Library component consists of a number of objects and collections. Summary of objects and collection of thep ADODB component is:
Objects & Collections of ADO ComponentThe FileSystemObject, FSO Component consists objects or collections which are the ActiveXObject objects provided by the Microsoft Scripting Run-time for creating ASP pages. And the interactive web application can then be built through the using of these built-in objects in the web pages.sing of these built-in objects in the web pages. Methods, Properties, Collections and Events of built-in ASP objects.
Link:http://output.to/sideway/default.asp?qno=130500014 Attributes / DateCreated / DateLastAccessed / DateLastModified, File Object, ASP Server Component, Built-in Function File ObjectOne key function of FileSystemObject Component is the manipulation of files of the file system. FileObject.Attributes PropertyFileObject.Attributes property for file object is a read/write or read-only property depending on the attribute to set and return the attributes of the specified object instance. Syntax:FileObjectName.Attributes [=newattributes] Or in VBScript. Implyy fileattributes =FileObjectName.Attributes FileObjectName.Attributes =newattributes Or in JScript. Implyy fileattributes =FileObjectName.Attributes FileObjectName.Attributes =newattributes Parameters:fileattributes The parameter "fileattributes" is the name assigned to the string returned by the Attributes property referred to the specified File object. FileObjectName The parameter "FileObjectName" is used to specify the name of the instance of the File Object related to. newattributess The optional parameter "newattributes" is used to specify the new attributes to be assigned by the Attributes property to the specified File object. Returns:bitwise value The return value of the Attributes property is the logical combination of the bitwise the attribute values of the specified file object instance. The possible bitwise values of the single entry of attributes for any logical combination are.
Remarks:FileObjectName refers to a File Object. And Folder object is another possible alternate object for the Attributes property. Examples:
FileObject.DateCreated PropertyFileObject.DateCreated property for file object is a read-only property to get and return the date and time of the specified object instance was created. Syntax:FileObjectName.DateCreated Or in VBScript. Implyy filedatecreated =FileObjectName.DateCreated Or in JScript. Implyy filedatecreated =FileObjectName.DateCreated Parameters:filedatecreated The parameter "filedatecreated" is the name assigned to the date and time returned by the DateCreated property referred to the specified File object. FileObjectName The parameter "FileObjectName" is used to specify the name of the instance of the File Object related to. Returns:date The return value of the DateCreated property is the date and time of the created time of the specified file object instance. Remarks:FileObjectName refers to a File Object. And Folder object is another possible alternate object for the DateCreated property. Examples:
FileObject.DateLastAccessed PropertyFileObject.DateLastAccessed property for file object is a read-only property to get and return the date and time of the specified object instance was last accessed. Syntax:FileObjectName.DateLastAccessed Or in VBScript. Implyly filelastaccessed =FileObjectName.DateLastAccessed Or in JScript. Implyly filelastaccessed =FileObjectName.DateLastAccessed Parameters:filelastaccessed The parameter "filelastaccessed" is the name assigned to the date and time returned by the DateLastAccessed property referred to the specified File object. FileObjectName The parameter "FileObjectName" is used to specify the name of the instance of the File Object related to. Returns:date The return value of the DateLastAccessed property is the date and time of the last accessed time of the specified file object instance. Remarks:FileObjectName refers to a File Object. And Folder object is another possible alternate object for the DateLastAccessed property. microsoft.com: "This method depends on the underlying operating system for its behavior. If the operating system does not support providing time information, none will be returned. "t; Examples:
FileObject.DateLastModifieded PropertyFileObject.DateLastModified property for file object is a read-only property to get and return the date and time of the specified object instance was last modified. Syntax:FileObjectName.DateLastModified Or in VBScript. Imply filelastmodified =FileObjectName.DateLastModified Or in JScript. Imply filelastmodified =FileObjectName.DateLastModified Parameters:filelastmodified The parameter "filelastmodified" is the name assigned to the date and time returned by the DateLastModified property referred to the specified File object. FileObjectName The parameter "FileObjectName" is used to specify the name of the instance of the File Object related to. Returns:date The return value of the DateLastModified property is the date and time of the last modified time of the specified file object instance. Remarks:FileObjectName refers to a File Object. And Folder object is another possible alternate object for the DateLastAccessed property. Examples:
|
Sideway BICK Blog 14/05 |