ListItem item = new ListItem("Item text", "Item value");
DropDownList ddl = new DropDownList(); ddl.Items.Add(new ListItem("Item text", "Item value"));
ListBox lst = new ListBox(); lst.Items.Remove(lst.SelectedItem);This removes the currently selected item from the ListBox control. The ListItem class is part of the System.Web.UI.WebControls package library, which provides classes for creating user interfaces for web applications.