It depends on whether you're already inside a server side script block or not. For example:
<%
If Something = SomethingElse Then
Else
End If
%>
In this example, the entire code block is between the <% and %> markers, so everything between the If and End If is pure ASP. Now consider this:
<% If Something = SomethingElse %>
<h1>Hi there, Something</h1>
<% End If %>
In this example, ASP is mixed with plain HTML. When Something is Something, the ASP code block is closed and plain HTML is sent to the browser.
The h1 will not be sent when Something does not equal SomethingElse.
HtH
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|