Access list box items added on client side
<ol>
<li>I have a listbox with runat=server</li>
<li>Items are added to this listbox on the client side, using javascript</li>
<li>I would want to retrieve the items on the server side on the click of a button</li>
</ol>

<p>The problem is in the Buttons's server side click handler, I cannot see the new items added to the listbox. Only the items that were there on page_load are displayed. How do i accomplish what i want to do</p>

<h1>Edit 1</h1>

<p>My Code Is like this</p>

<pre><code> protected void Page_Load(object sender, EventArgs e)
    {


        if (!IsPostBack)
        {
            if (ViewState["gameID"] == null)
            {
                //Populate Listbox
                //Set gameid in viewstate
            }

            //Add javascript handlers to buttons
            btnSomeButton.Attributes.Add("onclick", "aJavaScriptFunction"); 

        }
    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        ListItemCollection x = ListBoxRanks.Items;
        //Here items is has just those items that are added to the listbox on page load

    }
</code></pre>
