467,869 Members | 1,409 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,869 developers. It's quick & easy.

Unable to remove items from an asp.net listbox

I populate a listbox with the following code when my form loads:

lstBox.Items.Add("value");

Once the page loads, I give the user the ability to remove items from the
list box by selecting an item and executing the following code from a button
click event:

lstBoxs.Items.Remove(lstBox.SelectedItem);

This works as expected for items added to the box by the end user after the
page loads, but fails to work with items added when the page loads. Anyone
know what gives, or a workaround?
Jul 27 '05 #1
  • viewed: 1170
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Supra | last post: by
4 posts views Thread by Bilo | last post: by
4 posts views Thread by mostafa atalla | last post: by
3 posts views Thread by Bill Nguyen | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.