by: Codefixer.com
ASP delimiters
ASP code is opened and closed with the use of delimiters.
When you are going to write ASP code use the opening tag <% and when you have finished writing your code use the closing tag %>
note for our purposes it isn't important that you understand the following code example:
<% If request.form("name") <>"michael" then
response.write "your name is not michael"
End if %>
the delimiters do not need to be on the same line, the following code is the same as the above
<%
If request.form("name") <>"michael" then
response.write "your name is not michael"
End if
%>
To print out code use <%= or response.write
<%= "michael" %>
or
<% response.write "michael" %>
You will notice a similarity between the use of these delimiters and the opening < and > closing tags in html, well atleast i hope you do! :-)
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
More Web Development Articles
More By Developer Shed