Using a data-bind dropdownlist to populate another data-bind dropdownlist

M

mr2_93

Hi All,

I am new to ASP.NET and I am looking for help with the dropdownlist data
control.

I wonder if someone could show me how to past the SelectedValue of a
data-bind dropdownlist to poplulate a second data-bind dropdownlist.

For example, the first dropdownlist contains a list of companies and the
second dropdownlist displays a product list based on the selected value of
the first dropdownlist (after PostBack).

Also, how could I prevent the first dropdownlist from changing the selected
item back to the first/default item (i.e. item 0) after PostBack?


Thanks a lot for your help.


M.
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top