private void ProcessAccountRoles(int AccountID) { for (int i = 0; i < lbRoles.Items.Count; i++) { if (lbRoles.Items[i].Selected) { accountRoles.Insert(AccountID, lbRoles.Items[i].Text); } } }
private void ProcessAccountRoles() { try { role.Insert(1, "Administrator"); } catch (SqlException) { // Duplicate key means jobs done already... move on. } }
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); } } }