ListBox switch items asp.net jquery
<p>I've two ListBox (second one is empty on page load) and two buttons which switch items between those ListBox.However,im using Jquery two switch items,which means there are no Postbacks.Once,ive finished,i click another button to save the items from the second List,this time using PostBack.</p>

<p>When it runs on server,ASP.NET does not recognize any item on the list,showing listbox2.items.count = 0(zero),but im sure that list does have items.</p>

<p>I wonder if add items to the list without postbacks is the problem;</p>

<p>Any suggestions?</p>

<p>code trying to get list:</p>

<pre><code>   try
    {
        estabelecimentos = new List&lt;int&gt;();
        int x = lstSelect.Items.Count;//always 0,but list isnt empty
        estabelecimentos = lstSelect.Items.Cast&lt;ListItem&gt;().Select(v =&gt; int.Parse(v.Value)).ToList();      
    }
    catch(Exception ex)
    {
        divErro.Visible = true;
        lblErro.Text = ex.Message;
        return;
    }
</code></pre>
