// The client event ValueChanged takes two parameters sender and e // sender is the object which is raising the event // e is the SliderValueChangedEventArgs function WebSlider1_ValueChanged(sender, e) { var slider1 = $find("WebSlider1"); var slider2 = $find("WebSlider2"); //Gets new value of WebSlider1 var newvalueSlider1 = e.get_newValue(); //Sets the value of WebSlider2 to the new value of WebSlider1 slider2.set_value(newvalueSlider1); }
Me.WebSlider1.ClientEvents.ValueChanged = "WebSlider1_ValueChanged"
this.WebSlider1.ClientEvents.ValueChanged = "WebSlider1_ValueChanged";