Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excluding HTML with Jscript on an ASP Page

Status
Not open for further replies.

bigcolin

Programmer
Sep 19, 2002
4
GB
Does anyone know how to conditionally exclude a chunk of HTML (a table in this case) using <%....%> where there is already a <%=xyz%> within the table. Is there some sort of delimiter for <%??
 
do the following :
Code:
<% if myBooleanTest then %>
<TABLE>
...
...
<%=anotherVar%>
...
...
</TABLE>
<%end if%>

That works even if there are many ASP output tags (&quot;<%=...%>&quot;) in the code you want to hide. Water is not bad as soon as it stays out human body ;-)
 
I'm using Jscript but I get the general idea

Thanks for that
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top