ActiveX components

Source: Internet
Author: User
Tags object model
Author: scholar
When you use ASP to write server applications, ActiveX is required.
Powerful Web
For example, you need to connect to the database and perform online operations on the database. This article will introduce you from the beginning.
How to use ASP ActiveX components.
Starting from today, we will officially learn the essence of ASP-ActiveX
Component. In fact, when you use ASP to write server applications, you must rely on
ActiveX components for powerful Web
For example, you need to connect to the database to perform online operations on the database or
The file system on the WEB server for operations, or you need a WEB
Ad Exchange program, all of which must be called by ASP built-in ActiveX
Or write the required components.
So what is ActiveX components? How does it work? Actually
ActiveX component is a WEB
A file on the server, which contains the code for executing a certain item or a group of tasks. The component can execute public tasks, so that you do not have to create code for executing these tasks on your own. For example, the stock market report reader component can
The latest stock quotation is displayed on the Web page. When you install ASP on the WEB server
Environment, you can directly use several common components that come with it, such as Database Access
Component. Of course, you can also obtain optional components from third-party developers,
You can also write your own components. You can use components as scripts and Web-based
The basic construction block of an application, as long as you know how to access the objects provided by the component, even if you are a beginner in writing scripts, you can write the component without knowing how the component works.
ASP program. All in all, ActiveX
Components enable you to write powerful WEB without learning complex programming.
Server Scripts. If you are a Web
Application developers can use any language that supports the Component Object Model (COM) to write components, such,
C, C ++, Java, or Visual Basic. If you are familiar with COM programming, the ActiveX component is
Automation Server. But to run ActiveX on the Web server
Components cannot have graphical user interface elements, such as Visual Basic MsgBox
Function. Components can be reused. In the Web
After the component is installed on the server, you can
Applications, other components on the server, or
This component is called in programs written in compatible languages.
In ASP
How should I call components? As mentioned above, components are included in the dynamic link library (. dll)
Or the executable file (.exe)
Executable code in. A widget provides methods and attributes for one or more objects. To use the object provided by the component, we must first create an instance of the object and assign the variable name to the new instance. Use

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.