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!