ASP.NET ColorPicker
This Demo shows how to catch the ColorChanged event and handle it, the ColorChanged event occurs when the selected color is changed and posts back to the server.


 Picker Definition:
   ...
   <qwscp:ColorPicker id="ColorPickerDemo4_1" AutoPostBack="True" 
      OnColorChanged="ColorChanged" runat="server">
   </qwscp:ColorPicker>
   ...
         

 ColorChanged Event Handler Definition:
   ...
   Sub ColorChanged(sender As Object, e As ColorEventArgs)
      Demo4TextBox.Text = e.ColorValue
      Demo4TextBox.BackColor = e.Color
      Dim colorName As String = e.ColorName
      
      If (colorName = string.Empty) Then
         colorName = "Not Set"
      End If
      
      Demo4Label.Text = "The selected color's value is <b>" _
         + e.ColorValue + "</b>, and name is <b>" _
         + colorName + "</b>."
   End Sub
   ...