ASP Design FAQ and answers (3)

Source: Internet
Author: User
17. Question: What is the difference between using the AddNew method of ADO in ASP and directly using the "Insert into..." statement? Which method is better?
A: The AddNew method of ADO only encapsulates the "Insert into" statement. Therefore, when operating a large amount of data, the direct use of SQL statements will greatly speed up data access, because it reduces the "translation" time of ADO, because the operations executed by SQL statements are directly performed on the database server, especially when the data volume is large, it has significant advantages.
18. Question: why does an error occur when I use the standard insert record statement insert into books (name, email) values ("kitty", "kitty@263.com") in ASP?
A: Structured Query Language (Structured Query Language) is a data Query Language developed by IBM in the 1970 s. It has become a standard for relational database Query Language. An SQL statement is an English-based programming language that can be used to add, manage, and access databases.
Although double quotation marks can be used for strings added to SQL statements, single quotation marks are required in ASP for normal execution. Therefore, insert into books (name, email) values ('Kitty ', 'Kitty @ 263.com') should be written ').
19. Question: What is ActiveX control? Where can I obtain these ActiveX controls?
A: Microsoft ActiveX controls are reusable software components developed by software providers. In addition to ASP embedded objects, ActiveX controls installed can also be used in ASP, which can save a lot of valuable development time, in fact, many ActiveX controls are embedded in ASP.
Using ActiveX controls, you can quickly add special functions to Web applications and development tools. For example, you can use an AdRotator object to create an ad scroll board, use a FileSystemObject object to access files, and use a Marquee object to implement scroll text.
Currently, there are more than 1000 commercial ActiveX controls. ActiveX controls can be developed in a variety of programming languages, such as C and C ++, and Microsoft Visual Java development environment Microsoft Visual J ++.
Once the ActiveX control is developed, designers and developers can regard it as a pre-assembly component for developing customer programs. By using ActiveX controls in this way, users do not need to know how these components are developed. In many cases, they can design webpages or applications without programming themselves.
Currently, there are more than 1000 commercial controls provided by third-party software developers. The Microsoft ActiveX Component Library (ActiveX Component Gallery) stores related information and connections, which direct to various ActiveX controls provided by Microsoft and third-party developers. In the Microsoft ActiveX Component Library (ActiveX Component Gallery), you can find a list of companies that develop Internet-enhanced ActiveX controls.

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.