protected void Page_Load(object sender, EventArgs e) { //custlist = CustomerList.GetCustomers(); custlistalt = CustomerListAlternative.GetCustomers(); if (custlistalt != null) { custlistalt.DisplayContact(lstContacts); } }
protected void btnRemove_Click(object sender, EventArgs e) { int[] a; a = lstContacts.GetSelectedIndices(); for (int i = 0; i < a.Length; i++) { custlistalt -= (a[i] - i); } lstContacts.Items.Clear(); custlistalt.DisplayContact(lstContacts); }