title: How to select and get color in asp.net
body: <p>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?</p>
  
  <p>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.</p>
  
  <p>I've done some code behind, but thing doesn't work, as i manually type in colors like #000 or #fff (using textbox)</p>
  
  <p><strong>app.aspx</strong></p>
  
  <pre><code>&lt;label&gt;
  &lt;span&gt;Background color&lt;/span&gt;
  &lt;asp:TextBox ID="inp_bgColor" Width="125px" runat="server"&gt;&lt;/asp:TextBox&gt;
  &lt;/label&gt;&lt;span style="color:red"&gt;&lt;asp:Literal ID="error_bg" runat="server"&gt;&lt;/asp:Literal&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; 
  </code></pre>
  
  <p>and <strong>app.aspx.cs</strong> </p>
  
  <pre><code>Color txtClr = Color.FromName(inp_bgColor.Text);
  </code></pre>
  
  <p>I've noticed that System.Drawing.Color is type of ARGB color, so how do i do this?</p>
  
  <p>Thanks!</p>