Get changes to multiselect listbox selected items
<p>I have a listbox databound if not postback and items selected from a database (if applicable).  If i select new items in the listbox and postback, my foreach logic always sees only the original selection, not the changes.  Been banging my head trolling google for the answer.  Here's the code behind:</p>

<pre><code>  foreach (ListItem li in lsb.Items)
  {
    if (li.Selected)
    {
      try
      {
        [sql insert]
      }
    }
  }
</code></pre>

<p>EDIT: I should add the listbox is contained within and updatepanel</p>
