private void DeleteRecord() { // delete record IList selected_recs = new List <string>(); string[] mdelete = this.Request.Params.GetValues("mdelete[]"); string[] selection = this.Request.Params.GetValues("selection[]"); if (mdelete != null) { for (int ind = 0; ind < mdelete.Length; ++ind) { string[] indicies; indicies = this.Request.Params.GetValues("mdelete1"); selected_recs.Add(indicies[ind]); } } else if (selection != null) { for (int ind = 0; ind < selection.Length; ++ind) { selected_recs.Add(selection[ind]); } } foreach (string val in selected_recs) { bool abortDeleting = false; if (!abortDeleting) { if (1 > 1) { string[] arr = val.ToString().Split(new char[] { '&' }); controller.Delete( Convert.ToString(this.Server.UrlDecode(arr[0]).Trim()) ); } else { Data.KELOMPOKPENGGUNA.Destroy(val); } } } if (selected_recs.Count > 0) { } }