Solved

CheckBoxList display from codebehind

Posted on 2011-03-10
2
660 Views
Last Modified: 2012-08-13
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:CheckBoxList>
 
 [.cs]
 page_load(){
 //SelectedCategory from DB
 //GetCategory(SelectedCategory)
 //CheckBoxList1 add to .aspx page
 }
 
 GetCategory(SelectedCategory){
 // Display all category
 // compare with SelectedCategory
 // Return values
 }

Thank you
0
Comment
Question by:saloj
2 Comments
 
LVL 13

Expert Comment

by:agarwalrahul
ID: 35106402
0
 
LVL 8

Accepted Solution

by:
Anurag Agarwal earned 500 total points
ID: 35106453
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question