title: Remove selected Items from Asp.net ListBox
body: <p>I need to remove the selected items from a ListBox in asp.net.  I keep finding examples for windows forms but not for asp.net.</p>
  
  <p>I have a button click event that copies all items from one listbox to another.  I want to be able to select individual items from the second listbox and click a button to remove them.</p>
  
  <pre><code>protected void btnAddAllProjects_Click(object sender, EventArgs e)
  {
  
      foreach (ListItem item in lstbxFromUserProjects.Items)
      {
          lstBoxToUserProjects.Items.Add(item.ToString());
      }
  
  
  }
  
      protected void btnRemoveSelected_Click(object sender, EventArgs e)
      {}
  </code></pre>