Change value in dropdown2 if dropdown1 is clicked

J

jonny

Hi guys,

I have two dropdown controls on a web form. When I click on dropdown1
and make selection I would like to fire a sub that makes dropdown2 say
the word "test". This is just a little exercise so I understand how to
trigger a sub based on a dropdown click. Please advise.
 
G

Guest

Hi guys,

I have two dropdown controls on a web form. When I click on dropdown1
and make selection I would like to fire a sub that makes dropdown2 say
the word "test". This is just a little exercise so I understand how to
trigger a sub based on a dropdown click. Please advise.

Take a look at the examples in MSDN
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.dropdownlist.aspx

There is OnSelectedIndexChanged property that is referred to
Selection_Change method
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top