How to Create a Simple ASP Page

Learning how to create a simple active server page (ASP) is the first step in creating a dynamic, interactive website. An active server page contains a mixture of HTML tags and ASP script and is saved with the .asp extension. For example, an active server page named "Index" would be saved as index.asp. An active server page can be developed using a text editor such as Notepad or a package such as Dreamweaver or Visual Studio. The following five steps show how to create a simple ASP page that displays a greeting.

  1. Open your text editor.
  2. Enter the following statements. You'll see that the ASP script is distinguished from the HTML by the use of <% to indicate the beginning of the script and %> to indicate the end of the script.
    First ASP Page
  3. Save your file as firstasp.asp.
    Saving the ASP File
  4. Browse to the location of file firstasp.asp which you just saved and select it.
    First ASP Page Displayed in Internet Explorer
  5. Your page will appear as below in your browser.
    First ASP Page Displayed in Internet Explorer
Author: Kay McCabe
About Webucator

Webucator provides instructor-led training to students throughout the US and Canada. We have trained over 90,000 students from over 16,000 organizations on technologies such as Microsoft ASP.NET, Microsoft Office, Azure, Windows, Java, Adobe, Python, SQL, JavaScript, Angular and much more. Check out our complete course catalog.