D
Dmitry Duginov
Hi,
I have the following label markup (label is inside FormView):
<asp:Label
ID="lblIndicatorReady" runat="server" Text="RE" ToolTip="Ready"
BackColor='<%#
Eval("Ready").ToString()=="True"?System.Drawing.Color.FromName("#FFFF80"):System.Drawing.Color.White
%>'
Enabled='<%# Eval("Ready") %>'
Font-Bold='<%# Eval("Ready") %>'>
</asp:Label>
I.e. late binding for the "Ready" property used to determine should the
label be
(bold, highighted and enabled) or (plain, white background, disabled)
On initial load everything works as expected (for ready items label is
colored). But on postbacks BackColor is always white for some reason.
Enabled and Bold properties are shown correctly though.
Any ideas?
Dmitry.
I have the following label markup (label is inside FormView):
<asp:Label
ID="lblIndicatorReady" runat="server" Text="RE" ToolTip="Ready"
BackColor='<%#
Eval("Ready").ToString()=="True"?System.Drawing.Color.FromName("#FFFF80"):System.Drawing.Color.White
%>'
Enabled='<%# Eval("Ready") %>'
Font-Bold='<%# Eval("Ready") %>'>
</asp:Label>
I.e. late binding for the "Ready" property used to determine should the
label be
(bold, highighted and enabled) or (plain, white background, disabled)
On initial load everything works as expected (for ready items label is
colored). But on postbacks BackColor is always white for some reason.
Enabled and Bold properties are shown correctly though.
Any ideas?
Dmitry.