Example #1
0
 protected void btnRemoveSelectedPlugg_Click(object sender, EventArgs e)
 {
     BaseHandler bh = new BaseHandler();
     CoursePlugg cp = bh.FindCoursePlugg(Language, CourseId, Convert.ToInt32(hdnNodeCPId.Value));
     if (cp.children.Count == 0)
     {
         bh.DeleteCP(Convert.ToInt32(hdnNodeCPId.Value));
         lblCannotDelete.Visible = false;
     }
     else
         lblCannotDelete.Visible = true;
     BindTree();
 }