OnClick

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.
 
S

Steve C. Orr [MVP, MCSD]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top