protected void uoButtonReturn_Click(object sender, EventArgs e) { foreach (ListViewItem item in uoExceptionList.Items) { CheckBox uoSelectCheckBox = (CheckBox)item.FindControl("uoSelectCheckBox"); if (uoSelectCheckBox.Checked) { HiddenField hfExID = (HiddenField)item.FindControl("hfExID"); PageMethods.ExceptionAddRemoveFromList(hfExID.Value, "false", ""); } } ClosePage("Exception List successfully updated!"); }
protected void uoButtonReturn_Click(object sender, EventArgs e) { string sOverflowID = ""; foreach (ListViewItem item in uoListViewOverflow.Items) { CheckBox uoSelectCheckBox = (CheckBox)item.FindControl("uoSelectCheckBox"); if (uoSelectCheckBox.Checked) { HiddenField hfExID = (HiddenField)item.FindControl("hfExID"); sOverflowID = sOverflowID + ";" + hfExID.Value; } } PageMethods.OverflowAddRemoveFromList(sOverflowID, "false", "", Path.GetFileName(Request.Path)); ClosePage("Overflow List successfully updated!"); }