protected void btnSave_Click(Object Sender, EventArgs e) { oProjectRequest.DeleteQuestionsClass(intQuestion); foreach (TreeNode oNode in oTreeview.Nodes) { if (oNode.Checked == true) { oProjectRequest.AddQuestionsClass(intQuestion, Int32.Parse(oNode.Value)); } } Reload(); }