Go to GoReading for breaking news, videos, and the latest top stories in world news, business, politics, health and pop culture.

How to Create an Active Server Web Page

104 9

    The Environment

    • 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.

    Writing The Script

    • 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.

    Creating a Web Site

    • 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".

    Configuring and Testing the ASP Application

    • 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".

    Testing the ASP Application

    • 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.

Source...

Leave A Reply

Your email address will not be published.