ASP tutorial Internet Information Server (IIS)

Source: Internet
Author: User
Objective:Install and debug the ASP environment and debug the first simple program.

Because we want to build a website to learn ASP, the general habit is that all the files in the website should be put in one folder at the same time (of course, this folder can also be set as needed !), So here I create a myweb folder on the E drive.

First install IIS that comes with Windows 2000/XP as the server. Here, because my machine is XP, all of them are completed under XP.

Control Panel --> add or delete programs.

Then add and delete Windows Components-select the check box in front of the IIS component and wait for the installation. Here, you can view what we have previously done for you on this site.Video tutorialAfter installation.

Then, double-click "Administrative Tools" in the control panel ".

Double-click "Internet Information Service", which is IIS.

Select "default website", right-click the attribute, or press the shortcut key

On the attribute page, only three pages need to be modified. First, the website. If you have a fixed IP address, you can assign an IP address.

Next, select a folder on your own hard disk in the main directory to store the website (this directory is the directory we mentioned above in the E disk), and select read and write

Add a default page to the document. For example, if you call www.webjx.com, a default document is called.

 

Next is the most critical:

1. Create a new file in the folder you just defined. You can use NotePad to create a text file and copy the following content to notepad:

<% Response. Write "Hello world! "%>

Save as a 1. asp file (Note:. asp cannot be omitted. If it is omitted, you will save a text file ).

Open IE, enter http: // 127.0.0.1/1.asp( or http: // localhost/1.asp) in the address bar, and press enter to see the effect.

Finally, explain the meaning of the Code.

Response. Write indicates the display, and <% and %> indicates the ASP mark, where the information is processed by the server. 127.0.0.1 is the address, and ASP is the file name. The first day is over!

 

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.