Solved

CheckBoxList display from codebehind

Posted on 2011-03-10
2
662 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Suggested Courses

751 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