Databinding Check Box List and auto check - ASP.NET

Posted on 2006-06-01
Last Modified: 2008-03-04

I am databinding a check box list in ASP.NET.  This works fine!  However, dependent on some of the values in the datasource I would like to have some of the boxes checked, and others unchecked.  Can anyone tell me the easiest way to do this.  In an ideal world I don't want to have loop round the dataset and populate each check box one at a time.


p.s I am using 2.0

Question by:kinton
    1 Comment
    LVL 27

    Accepted Solution

    after your checkbox list is bound you can check or uncheck the dependent checkboxes in page load once you checked your datasource values. Unless I am not understanding your question this should be easy

    post some of your code please including the aspx page code


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now