// 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";
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2