I have the following for each of 5 rows in a Table, which is within a FormView ItemTemplate:
The Left(Eval("result"),1) statement returns either "Y" or "N". If it returns "N", I am trying to hide the row. Any suggestions?
Code:
<tr>
<td style="width: 100px; color: green;">
Exceptions:</td>
<td style="width: 100px" align="center"> <asp:Label ID="lblExceptions" runat="server" Text='<%# Left(Eval("result"),1) %>'></asp:Label></td>
<td style="width: 100px">
<asp:LinkButton ID="lnkExceptions" runat="server" Text="View Detail" OnClick="lnkExceptions_Click"></asp:LinkButton></td>
</tr>
The Left(Eval("result"),1) statement returns either "Y" or "N". If it returns "N", I am trying to hide the row. Any suggestions?