By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,666 Members | 1,544 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,666 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sorry, typo: "...how to pass the SelectedValue....." (not 'past').
"mr2_93" <mr****@hotmail.com> wrote in message
news:Os**************@TK2MSFTNGP14.phx.gbl...
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.

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.