<asp:ListBox ID="ListBox1" SelectionMode="Multiple" runat="server"> |
protected void Button1_Click(object sender, EventArgs e)
{
foreach (ListItem item in ListBox1.Items)
{
if (item.Selected == true)
{
ListBox2.Items.Add(item);
}
}
} |
Join the conversation! Your thoughts help the community grow.