我希望在ASP.NET窗体中获得BackColor of Label并使用此值更改此标签的颜色是可能的吗?
<asp:Label ID="Label2" runat="server" Text="Label" BackColor='<%# System.Drawing.Color.FromName(Eval(Container.DataItem,"BgColor").ToString())%>'></asp:Label>
Run Code Online (Sandbox Code Playgroud)
谢谢.