protected void btnAddChild_Click(object sender, EventArgs e) { if (!CheckAddText()) { lblCannotAdd.Visible = true; return; } BaseHandler bh = new BaseHandler(); CoursePluggEntity SelectedCP = bh.GetCPEntity(Convert.ToInt32(hdnNodeCPId.Value)); CreateCP(1, SelectedCP.CoursePluggId); }