ASP basics
Saturday, September 15th, 2007 | Programming, Tech
ASP code is added like scripts to HTML. You open an ASP script using the tag.
<%
You close it using the reverse.
%>
Therefore in a HTML page it would look like the following.
<html>
<head>
<title>Example script</title>
</head>
<body>
<%
' here is some ASP script
%>
</body>
</head>
Notice the use of a comment in the script.
<%
' This is an ASP comment
' Here is another
%>
ASP code is added like scripts to HTML. You open an ASP script using the tag.
<%
You close it using the reverse.
%>
Therefore in a HTML page it would look like the following.
<html> <head> <title>Example script</title> </head> <body> <% ' here is some ASP script %> </body> </head> Notice the use of a comment in the script.
<% ' This is an ASP comment ' Here is another %>