I try the foll. code---
protected void Button1_Click(o bject sender, EventArgs e)
{
int i;
for (i = 0; i <= ListBox1.Items. Count - 1; i++)
{
ListBox1.Items. Remove(ListBox1 .SelectedValue. ToString());
}
}
But it's not working.
protected void Button1_Click(o bject sender, EventArgs e)
{
int i;
for (i = 0; i <= ListBox1.Items. Count - 1; i++)
{
ListBox1.Items. Remove(ListBox1 .SelectedValue. ToString());
}
}
But it's not working.
Comment