[thelist] Monday Freebie

Scott Dexter sgd at ti3.com
Mon Oct 30 17:17:25 CST 2000


<tip type="ASP and HTML comments">
Be careful, even if you comment out html with <!-- --> any ASP code inside
the comment *will still execute*. For example, this ASP code will execute:

<!--
	<tr>
	<td>
	<% if bSayHi then %>
		Hello World
	<% else %>
		Goodbye World
	<% end if %>
	</td>
	</tr>
-->

despite the fact that in the browser its commented out. This can get you in
trouble if you have application affecting code inside the html comments, or
if you have syntax errors and such (a pain to debug, let me tell you!).

Yes, this should appear as obvious, but when the code gets colored out,
sometimes its easy to forget....
</tip>

sgd
--
work: http://www.ti3.com/
non: http://thinksafely.org/




More information about the thelist mailing list