title: treeview control's TreeNodeCheckChanged event in asp.net is not firing after checking the checkbox
body: <p>The <code>TreeNodeCheckChanged</code> event is not firing after the checkbox is checked.</p>
  
  <pre><code>Boolean flag;
  
  protected void TreeView1_TreeNodeCheckChanged(object sender, TreeNodeEventArgs e)
  {
      Label1.Text = "check event fired";
      TreeView1.SelectedNode.Checked = true;
      if (flag)
      {
          foreach (TreeNode child in TreeView1.SelectedNode.ChildNodes)
          {
              child.Checked = true;
          }
      }
      else
      {
          TreeView1.SelectedNode.Checked = false;
          foreach (TreeNode child in TreeView1.SelectedNode.ChildNodes)
          {
              child.Checked = false;
          }
      }
  }
  </code></pre>