Click here to Skip to main content
14,095,108 members
Rate this:
 
Please Sign up or sign in to vote.
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Clear the items of checkboxlist before rebinding 

CheckBoxList1.Items.Clear();
   

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web06 | 2.8.190518.1 | Last Updated 28 Oct 2010
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100