Rookie 10 days the first day of the ASP tutorial: Installing and debugging an ASP environment

Source: Internet
Author: User
Tags iis key
Tutorial | 10 Days of learning

  Learning Objectives: Install the Environment for debugging ASP, and debug the first simple program.

Because we learn the purpose of ASP is to build a website, then the general custom is to build all the files within the site should be placed in a folder (of course, this folder can also be set up subfolders as needed!) ), so here I set up a myweb folder in e-disk.

First, install the Windows 2000/XP with IIS as the server. Here because my machine is XP so all screenshots are done under XP.

Control Panel-->> Add or Remove Programs.

Then add delete Windows Components-check the front of the IIS components, and then wait for the installation, here you can watch this site before the video tutorial , completed after installation.

Then, in Control Panel, double-click Administrative Tools.

Then double-click Internet Information Services, which is IIS.

Select Default Web site, and then right-click the property or press the shortcut key directly

Only three pages in the property page need to be modified, first the Web site , if the user has a fixed IP, you can assign an IP

Next, select a folder on your own hard drive in the main directory to store the site (this directory is what we said above in the E-disk directory), check read, write

Add a default page to your document , such as playing www.webjx.com Web page The teaching network is called a default document.

The next key is also:

1, in a just you defined a folder inside a new file, you can use notepad to create a text file and then copy the following content to Notepad:

<%response.write "Hello world!" %>

Save As 1.asp file (Note:. asp can not omit Ah, if omitted you will save a text file).

Finally open IE, in the address bar input: http://127.0.0.1/1.asp (or http://localhost/1.asp) after the return can see the effect.

Finally, explain the meaning of the code.

Response.Write is the meaning of the display, before and after the <% and%> is the symbol of the ASP, where the information is handled by the server. 127.0.0.1 is the address, 1.asp is the filename. The first day is over!

Next section: form Transfer Variables



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.