cascade dropdown lists

C

cgian31

I have implemented a website where in a page are represented the data
of one record, using cascade dropdown lists in 2 levels, within the
same page/record.

According to the selection in the first dropdown (parent), the
available choices in the second one (child) change.
It works pretty well, except for the fact that when I retrieve an
existing record the second dropdown list is not correctly updated to
display the entry selected at the creation of the record, but it is
always displaying the first one of the entries.

Through the debugger I have realized that when the code-behind is
executed, the databind of the dropdown has not been done yet, therefore
the needed entries are not available to be selected at that moment.
Maybe because I have implemented them using the Visual Studio drag and
drop features for the datasources of dropdownlists?
 

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,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top