Is this a single row you are showing once in the table? Like a header or
footer? I highly recommend you replace the html with either an
asp:DataList, asp:Repeater, or asp:Table (there are other options, but these
would be the top 3 candidates in my opinion). Then, handle your logic
within your server-side code for the various properties of the control
(probably you'll want to play with the Visible and/or Enabled properties).
I've programmed in classic ASP for a long time, so I know how different it
is, but force yourself to get used to the new architecture and I promise, it
will get easier. Good luck.
"MarkN" <Ma***@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
Hi All,
I'm trying to use the <% if %> ... <% endif%> construct in the body of an
aspx page to conditionally display a table row. The table row is
displaying
regardless of the condition result in the if construct. Am I doing
something
wrong? The code is below:
<%if Test EQ 1%>
<TR>
<TD class="SubHead" noWrap width="1%">1Title:</TD>
<TD class="Normal" colSpan="6">
<asp:TextBox id="ftxtTitle" Width="100%" Runat="server">
</asp:TextBox>
</TD>
</TR>
<%endif%>
Thanks in advance to anyone who knows something about this.
Mark