Edit this page


The OnClientLoad client-side event occurs after the DropDownList has been fully initialized on the client-side.

The event handler receives one parameter:

  1. The DropDownList instance firing the event.

This event is helpful if you need to get the client-side instance of the DropDownList when it is embedded in other controls. Hook the OnClientLoad event and get the client-side instance of the DropDownList as demonstrated in the example below. This technique can be used to retrieve the DropDownList instance for use elsewhere.

<script type="text/javascript">
    function OnClientLoadHandler(sender) {
        var dropdownlist;
        dropdownlist = sender;

This technique may not work when AJAX is used. The asynchronous requests may interfere with the OnClientLoad event.

This event cannot be cancelled.

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article