title: Remove item from ASP listbox in client side script
body: <p>I am using this JavaScript code to delete the selected item in a listbox named lbResources when the user clicks a button:</p>
  
  <pre><code>var listResources = document.getElementById('lbResources');
  listResources.options.remove(listResources.selectedIndex);
  </code></pre>
  
  <p>This removes the item from the listbox, but on postback to the server, the item still exists in the code behind. Is there any way to get the code behind list box object to reflect an item remove on the client side? Is this a time I should use a standard HTML listbox instead of an ASP .NET control?</p>
  
  <p>I can simply use a hidden field to hold the data I need to pass for a postback, but I'd like to avoid that if possible.</p>