OnClick

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I want to clear a DropDownList control (selectedIndex=0) if the user types
in a TextBox. What is the easiest way to achieve this?

Thank you.
 
The easiest way would be to set the textbox to autopostback, then in its
server side change event set the dropdlown list to the desired index.

The slickest way would be to do it via client side code.
 
Back
Top