protected void btnCopy_Click(object sender, EventArgs e)
{
for (int i = lbSource.Items.Count - 1; i >= 0; i--)
{
if (lbSource.Items[i].Selected == true)
{
lbDestination.Items.Add(lbSource.Items[i]);
}
}
}
protected void btnMove_Click(object sender, EventArgs e)
{
for (int i = lbSource.Items.Count - 1; i >= 0; i--)
{
if (lbSource.Items[i].Selected == true)
{
lbDestination.Items.Add(lbSource.Items[i]);
ListItem li = lbSource.Items[i];
lbSource.Items.Remove(li);
}
}
}