Codefixer - ASP tutorials, resources and software
New MS SQL 2008 Available – DiscountASP.NET
Home   Articles   Resources   ASP directory   ASP Tutorials   Code Snippets   ASP Applications   Forum
Monday 6 October
MembersPro PayPal - ASP Membership software

USA & Europe Data Centers – DiscountASP.NET


ASP Partner ASP Partner ASP Partner more partners...

ASP/VBScript 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! :-)

LinksPro - Directory  and Link  Management Software




ASP.NET 3.5/2.0 Web Hosting: 3 Months FREE – Click Here!




About | Contact | Advertise | Feedback | Hire Us | Link

Site developed by Michael Wall - Web Design Belfast N.Ireland.
Copyright © 2000-2008. All rights reserved.

Do you intend to move to ASP.NET or have you already?
Yes will do
Have done
ASP does fine
Not a priority


Directory Software