I have an if statement containing a <table> with two rows, like so:
<%
...
If Not Request("InsertPlacement") <> "" Then
%>
<table width="100%" border="0">
<tr>
<td>
<!-- #include file="UserHeader.asp" -->
</td>
</tr>
<tr>
<td>
...
</td>
</tr>
</table>
<% End If %>
Now I have a whole bunch of compile errors saying things like "if must end with matching end if" (which it does) and "statement cannot appear outside of a method body" (huh? it's in a <%%> tag) and "declaration expected" (makes no sense at all).
If I delete both of the <tr> tags inside the <table>, or delete the whole <table>, the compile errors go away. However - if I delete one or the other <tr> tag, doesn't matter which, the errors do not go away. So which <tr> tag is causing the error? It's like the dual slit experiment - the error comes through either <tr> tag regardless of which I delete! What the heck could be going on here?!