How to Create an Active Server Web Page
- 1). Install and start a web server compatible with the ASP environment. This could be Microsoft Internet Information Server,
Microsoft Peer Web Services or Microsoft Personal Web Server. - 2). Click Start>Programs>Administrative Tools>Internet Services Manager.
- 3). Configure the Server Name, Web Site and other details. Save your changes and exit.
- 1). Start 'Notepad' and type the HTML code in the format:
<HTML>
<HEAD>
<TITLE> ASP Application</TITLE>
</HEAD>
<BODY BGCOLOR = Grey>
<H1> ASP Application</H1>
<HR>
eHow
<FORM METHOD=POST ACTION=Return.asp>
<INPUT TYPE=TEXT NAME="eHow">
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
Save the file as "Active.htm".
Type the following code again in Notepad:
<HTML>
<HEAD><TITLE>ASP Application</TITLE></HEAD>
<BODY BGCOLOR=grey>
<P> This Page Courtesy of:
<%
NAME=REQUEST.FORM ("eHow")
RESPONSE.WRITE (NAME)
%>
</P>
</BODY>
</HTML> - 2). Customize all text between the TITLE, H1, P and TEXT NAME elements to suit your web page.
- 3). Save the file as "Return.asp" in the same folder. Now your folder contains "Active.htm" and "Return.asp".
- 4). Close the "Notepad" application.
- 1). Start the IIS Manager and select "ServerName".
- 2). Expand the "Web Sites", right-click to "Default Web Site" and click on "Stop" to start the Web Site Creation Wizard.
- 3). Follow the wizard, filling in the "Description" and giving the relative path to the folder with the two files above.
- 4). Verify that only "Read" and "Run Scripts (Such as ASP)" have been selected.
- 5). Click "Next" and "Finish".
- 1). Fire up your IIS and right-click "Example".
- 2). Go to "Properties" and select the "Home Directory" tab.
- 3). Under "Application Settings", click on "Create".
- 4). Under the "Documents" tab, click on "Add" and type "Active.htm" as the "Default Document Name".
- 5). Locate "Active.htm" and click "OK".
- 1). Right click Example > Browse.
- 2). Type your name under the "type your name" box and click "Submit Query". The message "This page courtesy of: 'your name'" is displayed.
- 3). Restart the website by clicking "Delete" under "Example" in the IIS window. This does not permanently delete your "Return.asp" and "Active.htm" pages from the parent directory.
- 4). Click on Default Web Site > Start to restart it.
The Environment
Writing The Script
Creating a Web Site
Configuring and Testing the ASP Application
Testing the ASP Application
Source...