Click here to Skip to main content
15,903,385 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I Have problems with dropdownlist and checkbox control.

In my application I have one Dropdownlist1 which I fill manually with five items like this...

----select----
NationalSalesManager value=1
RegionalManager value=2
DepotManager value=3
AreaManager value=4
Supervisor value =5
salesman value=6

I want to populate one checkboxlist on the selected event of dropdownlist from the database- Dropdownlist1_SelectedIndexChanged.

When I select the NationalSalesManager then the record of National Sales Manager table display in checkBoxlist, when I select the RegionalManager from dropdownlist then the record of RegionalManager Table display in checkBoxList same as for others.


Please help me.
Posted
Updated 27-Oct-10 21:47pm
v2
Comments
Sandeep Mewara 28-Oct-10 3:39am    
Not clear.
Dalek Dave 28-Oct-10 3:48am    
Edited for Grammar and Syntax.

1 solution

Clear the items of checkboxlist before rebinding 

CheckBoxList1.Items.Clear();
 
Share this answer
 

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