How to debug an ASP's environment:
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 Web site, 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 as required subfolders!), 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:
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 markup 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!