private void ProcessAccountRoles() { roles.Remove(aid); for (int i = 0; i < lbRoles.Items.Count; i++) { if (lbRoles.Items[i].Selected) { roles.Insert(aid, lbRoles.Items[i].Text); } } }
protected void bnRemove_Click(object sender, System.EventArgs e) { int id = Convert.ToInt32(dr["AccountID"]); AccountRoles roles = new AccountRoles(appEnv.GetConnection()); roles.Remove(id); property.Remove(id); account.Remove(id); Response.Redirect("AdmAcntList.aspx"); }