Dropdownlist post back problem in user control

J

jonathanyan

Hi all:
I am dynamically creating two dropdownlist controls in a user
control, the data of the second dropdownlist control depends on the
selected value of the first dropdownlist control, the first
dropdownlist control has a post back event, in which it will bind the
data to the second control based on the selected value of the first
control.
Both auto postback and data binding work fine, but when I tried
selected a value in the second dropdownlist control and use a button
to commit the change, the selected value returned for the second
control is always the first element.
I have also tried to define a post-back event for the second
control, and I got the same result.

Any suggestion will be appreciated!

Jonathan
 

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,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top