protected void btnSave_Click(Object Sender, EventArgs e) { oServiceEditor.DeleteConfigAffects(intConfig); foreach (TreeNode oNode in oTree.Nodes) { foreach (TreeNode oChild in oNode.ChildNodes) { if (oChild.Checked == true) { oServiceEditor.AddConfigAffect(intConfig, Int32.Parse(oChild.Value)); } } } Response.Redirect(Request.Path + "?wm=" + intWM.ToString() + "&serviceid=" + intService.ToString() + "&configid=" + intConfig.ToString() + "&saved=true"); }