Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8213855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:15:42+00:00 2026-06-07T11:15:42+00:00

I have hierarchy which i need to bind to checkbox for parent and checkboxlist

  • 0

I have hierarchy which i need to bind to checkbox for parent and checkboxlist for 1 level children.

Somehow i cannot get to checkboxes(CheckBoxParent_CheckedChanged),checkboxlist’s (CheckBoxListChildren_SelectedIndexChanged) select events, without UpdatePanel as well.

Working on it for 4 hours without any result, why i can’t enter event when i check some checkbox ?

What am I doing wrong ?

Thanks

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        ListViewCategories.DataSource = CategoryManager.ListHierarchy();
        ListViewCategories.DataBind();
    }
}

protected void CheckBoxParent_CheckedChanged(object sender, EventArgs e)
{
    if (((CheckBox)sender).Checked)
    {

    }
    else
    {
    }
}

protected void CheckBoxListChildren_SelectedIndexChanged(object sender, EventArgs e)
{
    if (((CheckBoxList)sender).SelectedItem != null)
    {

    }
    else
    {
    }
}




  <asp:UpdatePanel ID="UpdatePanelCategories" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">
       <ContentTemplate>
            <asp:ListView ID="ListViewCategories" runat="server">
                <LayoutTemplate>
                    <div id="itemPlaceholder" runat="server"></div>
                </LayoutTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBoxParent" runat="server" Text='<%# Eval("Key.Name") %>' OnCheckedChanged="CheckBoxParent_CheckedChanged" /><br />
                    <asp:CheckBoxList ID="CheckBoxListChildren" runat="server" OnSelectedIndexChanged="CheckBoxListChildren_SelectedIndexChanged" RepeatDirection="Horizontal" DataSource='<%# DataBinder.Eval(Container.DataItem, "Value") %>' DataTextField="Name"></asp:CheckBoxList><br /><br />
                </ItemTemplate>
            </asp:ListView>
       </ContentTemplate>
   </asp:UpdatePanel>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T11:15:44+00:00Added an answer on June 7, 2026 at 11:15 am

    Put the “AutoPostBack” of CheckBox to true.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Have a system which is managing the document authorization on different hierarchy level,
I have a few classes which are the same level in a subtype hierarchy.
I have a quite complex class hierarchy in which the classes are cross-like depending
I have a hierarchy of tables 3 levels deep (QualificaionType has many QualificationGroups, which
Let's say I have the following class hierarchy: TaskViewer inherits from ListViewer<Task> which in
I have those two RxPaths which I need to be written in one expresion:
Suppose I have class hierarchy like the one shown in picture. Suppose I need
Fun with cyclic references: Suppose I have a table ELEMENTS which contain a hierarchy
I have a hierarchy of three interfaces, grandparent, parent and child. Parent and child
I have a class hierarchy, each member of which may create IDisposable objects. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.