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.
- Open your text editor.
- 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.
- Save your file as firstasp.asp.
- Browse to the location of file firstasp.asp which you just saved and select it.
- Your page will appear as below in your browser.