ASP basics

Source: Internet
Author: User
What is ASP? ASP is the abbreviation of Active Server Pages, that is, "Active Server Page ". ASP files are. asp is an extension. It is special that all markup languages that can be used in Html files can be used in ASP files, in addition, ASP files embed programs in the VB Script or Java Script language into the document by marking. When the server encounters this mark, it is considered as a program for interpretation and execution, then, the execution result is sent to the client for browsing, and the user cannot see the ASP Source File. Therefore, ASP is also called a server-side script file.
For the browser, ASP and html?_____________________________________________________________________________________________________________________________________________________________ _ are different, our browser only accepts HTML files, so it applies to any browser, whether it is IE or Netscape.
How can I run ASP? You only need to install IIS (Internet Information Server) or PWS (Personal Web Server) on your computer and set the directory attribute of your ASP file to "execute, when you browse an ASP file, enter the URL (HTTP: //…) in the browser ://......) The result of ASP execution is displayed.
From the above, we can see that to learn ASP, we must first have some basic knowledge of HTML and VBScript (or Java Script. Because I use VBScript in ASP writing, I hope you have some basic knowledge about VBScript. You may have studied VB, But VB and VBScript are different. VBScript is a subset of VB. Its syntax is basically the same as that of VB.
The following describes ASP objects. ASP has five built-in (built-in) objects:

In addition to the above objects, we can also use ActiveX objects. Unlike ASP built-in objects, ActiveX objects must be created before they can be used. For example, we need to create an object whose name is assumed to be dx, and this object belongs to the "ADODB object Library" (which corresponds to one in the file. DLL or. ". Here we use the Set statement and the built-in object "Server"'s "CreateObject function" to create this object dx:
Set dx = Server. CreateObject ("ADODB. Connection ")
By executing the preceding statement, an ActiveX object dx is created.
After talking about this, what can ASP do? You can see the following:
(1). You can display different information based on different user objects on your homepage (Dynamic HTML can also be used ). (2) you can create a counter on your home page. (3). You can store the information submitted in the html fotm file in the database. (4). Allows users to use the database on the server (for example, querying the database using keywords ). (5) you can create a message book on your homepage. (6). You can create chat rooms, search engines, and e-shopping.

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.