Creating ASP Pages

An ASP script has a beginning tag, <%, and an ending tag, %>, that work like the containers in HTML. In some ASP pages, you will mix HTML and JavaScript or even some XML, but here the focus is on using VBScript as the main scripting language for the server-side script and using JavaScript for the client-side script. The basic ASP container using VBScript has the following format:

						<% 
VBScript 
%> 

Writing VBScripts

Use your favorite JavaScript text editor to create your ASP scripts. If you use Notepad, place quotation marks around the name of your file when you save it, and Notepad will add no unwanted .txt extension. The following script will get you started:

<% 
Dim WhatzUP WhatzUP="Where did I put my code?" Response.write ...

Get JavaScript Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.