Skip to content

Example of ColorPickerFor in ASP.NET MVC ColorPicker Control

Click the submit button to post the current value of the ColorPicker. When submitting with color value `#000080`, validation error message will be shown by using Data Annotation.

Choose a color

This sample demonstrates strongly typed support in ColorPicker. You can bind model property to the ColorPicker by using Lambda Expression. While submitting form, the model property will be based on current value of the ColorPicker.