// The client event ButtonMouseOver takes two parameters sender and e // sender is the object which is raising the event // e is the SliderButtonMouseEventArgs function WebSlider1_ButtonMouseOver(sender, e) { var slider = $find("WebSlider1"); //Gets minimum value as number var minvalueAsDouble = slider.get_minValueAsDouble(); //Gets maximum value as number var maxvalueAsDouble = slider.get_maxValueAsDouble(); //Checks which button is involved in the event. //True for minus button and false for plus button. var button = e.isMinus(); if(button == true) { window.defaultStatus =(minvalueAsDouble + " is the minimum value of the slider"); } else { window.defaultStatus = (maxvalueAsDouble + " is the maximum value of the slider"); } }
Me.WebSlider1.ClientEvents.ButtonMouseOver = "WebSlider1_ButtonMouseOver"
this.WebSlider1.ClientEvents.ButtonMouseOver = "WebSlider1_ButtonMouseOver";