saloj
asked on
CheckBoxList display from codebehind
HI EE,
I have CheckBoxList for category and when I update the page.
1. I want to get the stored value from DB
2. if the category is already in DB then check on the CheckboxList
3. Display all the category list on CheckBoxList on .aspx page
how can I do the task!!!
[.aspx]
<asp:CheckBoxList ID="CheckBoxList1" runat="server"></asp:Check BoxList>
[.cs]
page_load(){
//SelectedCategory from DB
//GetCategory(SelectedCate gory)
//CheckBoxList1 add to .aspx page
}
GetCategory(SelectedCatego ry){
// Display all category
// compare with SelectedCategory
// Return values
}
Thank you
I have CheckBoxList for category and when I update the page.
1. I want to get the stored value from DB
2. if the category is already in DB then check on the CheckboxList
3. Display all the category list on CheckBoxList on .aspx page
how can I do the task!!!
[.aspx]
<asp:CheckBoxList ID="CheckBoxList1" runat="server"></asp:Check
[.cs]
page_load(){
//SelectedCategory from DB
//GetCategory(SelectedCate
//CheckBoxList1 add to .aspx page
}
GetCategory(SelectedCatego
// Display all category
// compare with SelectedCategory
// Return values
}
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=135855
https://www.experts-exchange.com/questions/24273331/how-to-bind-selected-checkboxlist-values-in-database.html