code blocks are not supported in this context in asp.net control
<p>i m creating one html table. i want to hide the table row. i m putting the properties runat=server and id for the particualr row. but the particular row has client side code like this ( &lt;% if ((strFlag=="d") || (strApprvdFlag=="y")) {%>).after call this line i got this error code blocks are not supported in this context in asp.net control. </p>

<p>sample code</p>

<pre><code>&lt;table&gt;
  &lt;tr colspan="4" ID="trMedical"  scriptrunat="server"&gt;
                &lt;td style="WIDTH: 45px;HEIGHT: 12px" align="left" class="LabelTaxText" width="45"&gt;&lt;b&gt;G&amp;nbsp;
                    &lt;/b&gt;
                &lt;/td&gt;
                &lt;td style="WIDTH: 182px;HEIGHT: 12px" class="LabelTaxText" align="left" width="182"
                    colSpan="2"&gt;Medical
                &lt;/td&gt;
                &lt;td style="WIDTH: 81px; HEIGHT: 12px" align="right" class="LabelTaxText" width="81"&gt;
                    &lt;asp:textbox onchange="onChangeFlag(),intOnly(this);" onkeyup="intOnly(this);" onkeypress="return CheckNumericWithOutDecimals(event)"
                        id="TxtMedical" tabIndex="24" runat="server" Width="96px" MaxLength="12" style="Z-INDEX: 0"&gt;&lt;/asp:textbox&gt;&lt;/td&gt;
                &lt;% if ((strFlag=="d") || (strApprvdFlag=="y")) {%&gt;
                &lt;td class="LabelTaxText" style="WIDTH: 107px; HEIGHT: 12px" align="right" width="107"&gt;&lt;asp:textbox onchange="onChangeFlag(),intOnly(this);" onkeyup="intOnly(this);" onkeypress="return CheckNumericWithOutDecimals(event)"
                        id="TxtMedicalProof" tabIndex="24" onblur="charAlert(TxtMedical,TxtMedicalProof)" runat="server" MaxLength="12" Width="96px"&gt;&lt;/asp:textbox&gt;&lt;/td&gt;
                &lt;% } %&gt;
                &lt;% if (strApprvdFlag=="y") {%&gt;
                &lt;td class="LabelTaxText" style="WIDTH: 68px; HEIGHT: 24px" align="right" width="68"&gt;&lt;asp:textbox id="TxtMedicalApproved" tabIndex="24" runat="server" MaxLength="12" Width="96px"&gt;&lt;/asp:textbox&gt;&lt;/td&gt;
                &lt;td class="LabelTaxText" style="WIDTH: 43px"&gt;&amp;nbsp;
                    &lt;asp:Label ID="lblMedicalRemarks" Runat="server"&gt;&lt;/asp:Label&gt;
                &lt;/td&gt;
                &lt;% } %&gt;
  &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>please anybody help me.. thanks in advance</p>
