As there is no integrated attribute for color in asp.net (atleast i haven't found it), i wonder, how do you guys select color?
Let's say i want to create a drawing using bitmap and i want to get background color from the user who selects it using the application.
I've done some code behind, but thing doesn't work, as i manually type in colors like #000 or #fff (using textbox)
<asp:TextBox ID="inp_bgColor" Width="125px" runat="server"></asp:TextBox>
</label><span style="color:red"><asp:Literal ID="error_bg" runat="server"></asp:Literal></span><br /><br />
Color txtClr = Color.FromName(inp_bgColor.Text);
You can use hex colors like this:
string hex = "#FF3FF3"; Color _color = System.Drawing.ColorTranslator.FromHtml(hex);