Embedded and called ActiveX controls in ASP

Source: Internet
Author: User
Tags access database
There are many people who understand ASP (Active Server Pages), but there are not many people who can use ASP to freely call ActiveX controls. If you do not call ActiveX controls, it can be said that Microsoft's original intention to design ASP was not achieved. As we all know, ActiveX technology is another new measure Microsoft has taken in addition to IE on the Internet. It can be said that ActiveX technology has penetrated into its entire Internet policy. ActiveX is a powerful component that can be written in VB, C, C ++, and other languages. It is faster because it is compiled.
Multiple powerful ActiveX Server controls are built in ASP (Active Server Pages), including Ad Rotator (dynamic Ad generation control) and BrowserType Capabilities (browser compatible control), Database Access (Database Access control), Content Linking (File link control), and File Access Component (File Access control. Of course, ASP can not only call embedded ActiveX controls, but also call standard ActiveX controls compiled by other users.
 
    
You must first define the control before using it, for example, <% Set object variable name = Server. createObject ("ADODB. connection ") %>, or use the HTML <OBJECT> and </OBJECT> tags for definition. The effect is the same.
 
    
Example: <object runat = SERVER
ID = object variable name
PROGID = "ADODB. Connection">
    
</OBJECT>
    
After the definition, we can start to call its method to cooperate with relevant work.
 
    

    
1. Embedded methods and attributes of various ActiveX controls
    
1. Database Access (Database Access control)
    
This is a very important part, because more than 50% of the work involves almost all the databases, using this control can be said to be essential. In ASP, ADO (Active Data Objects) is used to access database Data. If it is a Remote Data source, RDO (Remote Data Objects) can be used ). ADO includes the following seven object classes.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.