Quick Links
ASP.NET Color Picker - AutoPostBack
Current color (click to the box):
Color Picker
Previous color:
This example demonstrates
AutoPostBack
and
PickButton
properties use with
ColorPostBack
event
(
MS ASP.NET AJAX
)
.
Example code
<
script
runat
="server"
language
="c#">
private void Color_CallBack(object sender,
ColorPostBackEventArgs
e){
color.Style[
"background-color"
] = e.Color;
previous.Style[
"background-color"
] = e.PreviousColor;
}
</
script
>
...
<
obout:ColorPicker
runat
="server"
ID
="picker"
TargetId
="color"
TargetProperty
="style.backgroundColor"
OnColorPostBack
="Color_CallBack"
PickButton
="false"
AutoPostBack
="true"
>
<
asp:TextBox
readOnly
="true"
id
="color"
style
="cursor: pointer;"
runat
="server"
/
>
<
/
obout:ColorPicker
>
Previous color:
<
asp:TextBox
readOnly
="true"
id
="previous"
style
="width: 40px;"
runat
="server"
/
>
Download working example
.
"
I would like to thank the whole obout team for a great tool. Recently I have downloaded your tool and I believe that your controls are tremendous to work with. The usefulness and appearance is excellent.
"
Faruk Sikder
Spectrum Engineering Consortium Ltd.
Random testimonial
All testimonials
obout.com
obout.com Home
Color Picker Home
Color Picker Home
Download
Site Map
Examples
- 13
Default settings
Background color
TextBox inside Color Picker
Without TargetId
Post back to server
Callback with
MS ASP.NET AJAX
Callback with
obout AJAX Page
AutoPostBack
"One touch"
Custom colors
Custom colors only
Inside
Grid
control
Custom CSS file
Customize
- 1
Custom Style file
Knowledge Base
- 1
Knowledge Base
Documentation
- 3
Server side interface
Client side interface
ChangeLog
ASP.NET 2.0-4.0
AJAX Page
Calendar
Color Picker
Date Picker
File Upload Progress
Flyout
Grid
HTML Editor
Image Zoom
Listbox
Multilevel Listbox
Show
Spell Checker
Splitter
Super Form
Tab Strip
TreeView
Tree_DB
Window
Menu
Context Menu
Easy Menu
Slide Menu
Text Menu
Combobox
Combobox
AJAX Autosuggest
Multilevel Combobox
State Selector
Interface Controls
Button
Checkbox
Dropdown List
Multiline Textbox
Radio Button
Textbox
ASP.NET 3.5-4.0
Color Picker
File Upload
HTML Editor
Spell Checker
TreeView
ASP.NET MVC
Combobox
HTML Editor
Interface Controls
Listbox
Multilevel Combobox
Multilevel Listbox
State Selector
Download
Suite for ASP.NET
Customer log-in
Support
Knowledge base
Contact support
Install FAQ
Mailing list
Purchase
Purchase page
Contact Sales
License info
Terms of use
Company
Testimonials
Clients
Contact us