Dropdwonlist problem

D

David Sagenaut

I have four dropdownlist controls. All the controls are binding to one
table. However, the second control has filter (where clause) based on the
value in the first control, and the third control has filter based on the
value in the second control, and the four control has filter based on the
value in the third control.

When the page starts, the value in each control renders correctly. My
problem is when I click an item in the first dropdownlist control, only the
second dropdownlist control is rendered. The third and fourth ones didn't
refresh (render). I have to click a button once, the third control
refreshes, and click the button once again, the fourth one relashes (that
is, once I click an item in one control, the next dependent control renders,
but the next next dependent control doesn't render). But I set AutoPostBack
to true for all controls. I am very appreciated if someone can help me.
Thanks in advance!

David
 
M

Mr Newbie

I'm kinda confused as to how you have set this up. I think if you post the
relevant property settings for the design time bindings along with the
Page_Load event then I might have a better chance of understanding how this
has been put together.

mr N
 
G

Guest

AutoPostBack feature would postback when the user click/change the control,
not when the control value is changed from code behind

You will need to bind control 3 and 4 again in the OnChange event of Control1
 

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

Top