Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello! i have a two cascading listbox with selection mode multiple in asp.net c#. first list box contain company name and second listbox contain branch name.when i select company name from first listbox,respective branch show in second listbox,but i want to select multiple company from first listbox and respective branch appear in second list box,i am unable to select multiple selection because autopostback is true of first listbox,how to do it?? help me
Posted

1 solution

put the listbox in an updatepanel. That way it will only perform a partial postback. set the update panel to childrenastriggers false and updatemode conditional. Now add a second update panel around your second listbox (same params).

If you never call updatepanel1.update() then the first listbox will not reload and will only post. instead call updatepanel2.update() after you have made the serverside changes

This is a cheap way of implementing an ajax clientside post. There are other ways this can be done but this is by far the simplest
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900