Start learning ASP to quickly develop small and medium websites

Source: Internet
Author: User

Recently, due to the rapid development of websites for colleges and universities, the company decided to adopt ASP for development and arrange to complete it by itself. Although we have never really touched on such actual development before, however, we still need to work hard to learn these basic syntaxes and statements and hope that we can grasp this new development environment as soon as possible.

Microsoft Active Server Pages is what we call ASP. It is actually a Server-side scripting environment developed by Microsoft. ASP is included in IIS 3.0 and 4.0, through ASP, we can combine html web pages, ASP commands, and ActiveX components to build dynamic, interactive, and efficient WEB server applications. With ASP, you don't have to worry about whether your browser can run the code you have written, because all programs will be executed on the server side, including all script programs embedded in common HTML. After the program is executed, the server only returns the execution results to the client browser, which reduces the burden on the client browser and greatly improves the interaction speed.

 

First, let's look at the environment required to run ASP:

* Microsoft Internet Information Server version 3.0/4.0 on Windows NT Server

* Microsoft Peer Web Services Version 3.0 on Windows NT Workstation

* Microsoft Personal Web Server on Windows 95/98

As mentioned above, it is different from general programs ,. asp programs do not need to be compiled. The control part of ASP programs is designed using VBScript, JScript, and other scripting languages. When ASP programs are executed, the script program sends a complete set of commands to the script interpreter (that is, the script engine), which translates them into commands that can be executed by the server. Of course, like other programming languages, ASP programming follows certain rules. If you want to write ASP programs in your favorite scripting language, then, you must have a script interpreter that can interpret the language on your server. When you install ASP, the system provides two scripting languages: VBsrcipt and JScript, while VBscript is used as the default scripting language of the system. You can also change the default scripting language of the system based on your preferences. For how to change the default scripting language of the system, see the article "using scripting language in ASP.

 

ASP is not a scripting language. It only provides an environment for script programs embedded in HTML pages to run. However, to learn ASP well, you must master its syntax and rules. Now let's get to know and learn about Active Server Pages step by step.

ASP is actually based on the extension. asp exists in the form of plain text on the WEB server. You can open it in any text editor. ASP programs can contain plain text, HTML tags, and script commands. You only need to place the. asp program under the virtual directory of the WEB server (the directory must have executable permissions), and then you can access the ASP program through WWW. To learn ASP program design well, you must master the writing of scripts. What is a script? In fact, scripts are composed of a series of script commands. For example, a program can assign a value to a variable, and the WEB server can send a value to the client browser, you can also define a series of commands as a process. To write scripts, you must be familiar with at least one scripting language, such as VBScript. Scripting is a special language between HTML and programming languages such as JAVA, Visual Basic, and C ++. Although it is closer to the latter, however, it does not have complex and rigorous syntax and rules for programming languages. As mentioned above, the script running environment provided by ASP supports multiple scripting languages, such as JScript, REXX, and PERL, which undoubtedly gives ASP programmers a wide range of opportunities to play. The emergence of ASP makes the majority of WEB designers do not have to worry about whether the customer's browser supports or not, in fact, even if you are in the same. you don't need to worry about using different scripting languages in asp files, because everything will be done on the server side. What the client browser gets is the result of executing a program, and you only need. use different scripting languages in asp.

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.