I
Igor
Hello
I have the following problem. I have three drop down lists on my page. They
are filled with data from a database. Initially only the first one is
enabled. The next one is enebled when user selects an item from the first
one -- it is then filled with data specific to the selection in the drop
down list above. The same with the third one. For each drop down list the
first item is always "--select an item--" (as described here:
http://weblogs.asp.net/scottgu/archive/2006/01/29/436804.aspx). To enable
that I had to set the AppendDataBoundItems property for all three drop down
lists to "true". Unfortunatelly, when a user selects an item from the first
drop down list, the second one gets filled with item "--select an item--"
and data from the database. But if the user changes their mind and selects
different item from the first list (or list above in the structure) the next
drop down list gets filled with new data, but, because of the
AppendDataBoundItems property set to "true", previous data remains in the
list. Thus, I must clear list(s) when user makes change to the selection
above in the structure. How can I do this?
Kind regards
IgorM
I have the following problem. I have three drop down lists on my page. They
are filled with data from a database. Initially only the first one is
enabled. The next one is enebled when user selects an item from the first
one -- it is then filled with data specific to the selection in the drop
down list above. The same with the third one. For each drop down list the
first item is always "--select an item--" (as described here:
http://weblogs.asp.net/scottgu/archive/2006/01/29/436804.aspx). To enable
that I had to set the AppendDataBoundItems property for all three drop down
lists to "true". Unfortunatelly, when a user selects an item from the first
drop down list, the second one gets filled with item "--select an item--"
and data from the database. But if the user changes their mind and selects
different item from the first list (or list above in the structure) the next
drop down list gets filled with new data, but, because of the
AppendDataBoundItems property set to "true", previous data remains in the
list. Thus, I must clear list(s) when user makes change to the selection
above in the structure. How can I do this?
Kind regards
IgorM