Sunday, September 21, 2008

Manually Drop Down the WebCombo

The dropdown area of WebCombo can be programmatically displayed on the client side using the following code.

In this example, a button control is added to the page and a javascript handler is setup to call the WebCombo.setDropDown method.

The variable used to reference the WebCombo, (oWebCombo1) is automatically generated to the page based on the name of the control on the server.

In Html

onclick="javascript:ShowDropDown()"
value='Show DropDown'>

In JavaScript

No comments: