obout
obout.com Home
|
Quick Links
Search
ASP TreeView
Examples
How-Tos and Help
ASP.NET Grid
Examples
Documentation
SlideMenu
Examples
How-Tos and Help
Calendar
Examples
Tutorials
Documentation
Splitter
Examples
How-Tos and Help
Easy Menu
Examples
How-Tos and Help
HTML Editor
Examples
How-Tos and Help
Window
Examples
How-Tos and Help
Purchase
Purchase page
Ordering/Licensing details
Install
Add to VS 2005
Add to project
Support
Contact Us
obout.com
obout.com Home
obout ColorPicker
Download
ColorPicker home
Working examples
- 11
Default settings
Background color
TextBox inside ColorPicker
Without TargetId
Post back to server
Callback with
MS ASP.NET AJAX
Callback with
obout AJAXPage
AutoPostBack
New
"One touch"
New
Custom colors
New
Custom colors only
New
Inside obout
Grid
control
New
Customize
- 1
Custom style file
Documentation
- 2
Server side interface
Client side interface
Change Log
Current color (click to the box):
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
Here
.
Please visit
HOW-TO and Help
page for any questions.
"
I just can't believe how great your suite of components is.
"
Gunnar Skogsholm
Couloir Software
© Copyright 2000-2007 obout inc. All rights reserved.
Terms of Use
|
Privacy Statement