A
Andy
Suppose you have a label:
<asp:FormView>
<ItemTemplate>
<asp:Label ID="MyLabel" runat="server" Text='<%# Bind( "BoolValue" )
%>' />
</ItemTemplate>
</asp:FormView>
Now, the value is a boolean... but I'd like to display Disabled when
false, and Enabled when true. Any easy way to do this? Setting it on
the formviews databound event only happens when the the formview
DataBinds. I need it to update whenever the value changes (there's a
button outside the formview which has a click event to do this).
Thanks
Andy
<asp:FormView>
<ItemTemplate>
<asp:Label ID="MyLabel" runat="server" Text='<%# Bind( "BoolValue" )
%>' />
</ItemTemplate>
</asp:FormView>
Now, the value is a boolean... but I'd like to display Disabled when
false, and Enabled when true. Any easy way to do this? Setting it on
the formviews databound event only happens when the the formview
DataBinds. I need it to update whenever the value changes (there's a
button outside the formview which has a click event to do this).
Thanks
Andy