Reload a dropdown on postback
<p>I am populating a dropdown on page load and the user selects an item, click a button (to create a new site in sharepoint) I then want this new site to be shown in the dropdown but I can't get it to work properly. Either the items are duplicated or the selected value is null.</p>

<p>so on page_load I have</p>

<pre><code>getSites();
</code></pre>

<p>if the page is a postback I want to reload the dropdown with the new item</p>

<pre><code>if(Page.IsPostBack)
{
    getSites();
}
</code></pre>

<p>but this of course duplicates all the values so I tried</p>

<pre><code>if(Page.IsPostBack)
{
      ddlSites.Items.Clear();
      getSites();
}
</code></pre>

<p>But even if the site is reloaded with all the items and I select one the value is null, why is that and what should I do to fix this problem?</p>

<p>Cheers</p>
