I'm trying to control whether or not some <td>
elements are rendered or not using databinding and runat="server"
:
<td runat="server" visible="<%# this.SomeBool %>"><tr>Hello world!</tr></td>
The trouble is that the SomeBool
property just isnt being called.
If I explicitly set visible to false, like this:
<td runat="server" visible="False"><tr>Hello world!</tr></td>
Then all is well and the element is not rendered.
How do I get this databinding to work?