In this sample example of AJAX Control Toolkit Slider extender control we will create a color mixer that will generate a color hex code from the three different values of sliders. Here we have used three slider extenders to produce the RGB combination i.e. red, green and blue. To generate the hex code from the decimal values of three different slider extender controls we have used a javascript function to convert decimal to hex code. At server side page on event is also attached to the target textboxes of slider extender controls. This attached event calls the javascript function when value property of the asp:textbox changes. Name of the event attached is onchange, which fires at client side.
Onchange client side event is being attached to call the javascript function that converts the decimal value into hex code and generates the color shade for the background of Panel control.
}
Next see the AJAX Slider Control JavaScript Code...
Currently rated 5.0 by 1 people
Tags: asp.net 2.0, ajax slider, ajax slider sample code, ajax slider control, asp.net ajax control toolkit, slider extender, accordion extender, autocomplete extender, free sample code
10/11/2008 3:19:44 AM