// The client event MarginMouseDown takes two parameters sender and e // sender is the object which is raising the event // e is the SliderButtonMouseEventArgs function WebSlider1_MarginMouseDown(sender, e) { var slider = $find("WebSlider1"); //Gets minimum value as number var minvalue = slider.get_minValueAsDouble(); //Gets maximum value as number var maxvalue = slider.get_maxValueAsDouble(); //Checks which button is involved in event var bool = e.isMinus(); if (bool == true) { alert("The minimum value of the slider is " + minvalue); } else { alert("The maximum value of the slider is " + maxvalue); } }
Me.WebSlider1.ClientEvents.MarginMouseDown = "WebSlider1_MarginMouseDown"
this.WebSlider1.ClientEvents.MarginMouseDown = "WebSlider1_MarginMouseDown";