D
Didg
I have a working page with this snippet inside an asp:TemplateColumn
cheerfully returning data:
<ItemTemplate><asp:Label runat="server" BackColor="LightGreen" Text='<%#
DataBinder.Eval(Container, "DataItem.Region") %>'>...
Now I want to set the BackColor, so I create a new DataItem property, test
it and this works very finely:
<asp:Label runat="server" BackColor="LightGreen" Text='<%#
DataBinder.Eval(Container, "DataItem.RegionColor") %>'>
so then I use:
<asp:Label runat="server" BackColor='<%# DataBinder.Eval(Container,
"DataItem.RegionColor") %>' Text='<%# DataBinder.Eval(Container,
"DataItem.Region") %>'>
but unhappiness.
Any explanation/solution received with joy.
cheerfully returning data:
<ItemTemplate><asp:Label runat="server" BackColor="LightGreen" Text='<%#
DataBinder.Eval(Container, "DataItem.Region") %>'>...
Now I want to set the BackColor, so I create a new DataItem property, test
it and this works very finely:
<asp:Label runat="server" BackColor="LightGreen" Text='<%#
DataBinder.Eval(Container, "DataItem.RegionColor") %>'>
so then I use:
<asp:Label runat="server" BackColor='<%# DataBinder.Eval(Container,
"DataItem.RegionColor") %>' Text='<%# DataBinder.Eval(Container,
"DataItem.Region") %>'>
but unhappiness.
Any explanation/solution received with joy.