I have a dropdownlist which has list of categories & a link which is for refreshing dropdownlist items.
@Html.DropDownList("CategoryNameItemNameBinding", Model.CatgegoryNameItems)
<a href="javascript:void(0)" id="opener" onclick="openDialog('Category',this)">Refresh Category List</a> </span>
The link opens a small popup windows with a button which when clicked the database table to which dropdownlist is bound is updated.
The problem is that although the database table is updated the dropdownlist does not shows new items until the page is manually refreshed or I navigate away and come back to page.
I do not want to refresh/ reload the entire page. How do I refresh the dropdownlist to reflect the new items.
Thanks