Version

ValueChanged Property (DropDownClientEvents)

Syntax
'Declaration
 
Public Property ValueChanged As String
public string ValueChanged {get; set;}
Example
WebDropDown1.ClientEvents.ValueChanged = "WebDropDown_ValueChanged"
WebDropDown1.ClientEvents.ValueChanged = "WebDropDown_ValueChanged";
// The client event 'ValueChanged' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the DropDownEditEventArgs
function WebDropDown_ValueChanged(sender, e) {

    //Gets the new value in the  value display
    var newValue = e.getNewValue();

    //Gets the old value in the value display
    var oldValue = e.getOldValue();

    window.status = "New Value : " + newValue + "; Old value : " + oldValue; 
             

}
Requirements

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

See Also