A brief introduction to the basic introduction of human ASP development

Source: Internet
Author: User
What is ASP? ASP is an abbreviation for Active Server Pages, which is the active Servers page. ASP files are extended with. asp, which is special in that all markup languages that can be used in HTML files can be used in ASP files, and the ASP files are labeled with VB Script or Java via <%......%> Scripts in the script language are embedded in the document, and when the server encounters the pair, it is treated as a program for interpretation, then the results are delivered to the client for browsing, and the user cannot see the ASP's source files, so the ASP is also called the server-side script file.

For browsers, ASP and HTML are almost indistinguishable, with only the suffix of. asp and. htm, and when we make an ASP application on the client, the server interprets the content between <% and%> as an HTML language and delivers it to the client's browser. Our browsers accept only HTML-formatted files, so it works for any browser, ie or Netscape.

How can I run an ASP? Simply, you can install IIS (Internet Information Server) or PWS (Personal Web server) on your computer and set the Directory property for your ASP file to "execute". When you browse the ASP file, enter the URL in the browser (http://...) You can see the results of the ASP execution.

As you can see from the above, to learn about ASP, first have some basic knowledge of HTML and VBScript (or Java Script). Because I am using the VBScript scripting language in my ASP's writing, I hope you have some basic understanding of VBScript. Maybe you have learned VB, but VB and VBScript are different. VBScript can be said to be a subset of VB, its syntax and VB are basically the same.

Let's start with an ASP object. The ASP itself has five main built-in (built-in) objects:

Object Purpose Server provides a variety of information about the server the request is used to read the information submitted by the browser on the client Response used to transmit information to the browser on the client application used to record common information between different Web pages Session is used to record the information of the connectors for each of the different clients
In addition to the objects above, we can also use ActiveX objects. Unlike an ASP's built-in object, an ActiveX object is typically used to create a specific object before it can be used. For example, we're going to create an object whose object name is DX, and this object belongs to the ADODB object library (corresponds to one in the file). DLL or. exe file), "Connection object type". Here we use the SET statement and the "CreateObject function" of the built-in object "Server" to establish this object dx:

Set dx=server.createobject ("ADODB. Connection ")
By executing the above statement, we set up an ActiveX object dx.

Said so much, so what can the ASP do? Look down and know:

(1). You can display different information on your home page based on different user objects (this can also be done using Dynamic HTML)

(2). You can create a counter in your home page

(3). The information submitted in the FOTM of HTML can be stored in the database

(4). Can allow users to use the database in the server (such as using the keyword query database, etc.)

(5). You can create a message book on your home page

(6). Can create chat rooms, search engines, electronic shopping, etc.



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.