Hi All,
I am working in User Control with SP2010.
I am binding dropdown from list A (column 1) in page load and then adding value in list A while Submit and then immediately rebounding my dropdown but NEW value is not appended in dropdown. When I refresh the page manually, then NEW value gets bounded/update.
However, my requirement is to update value in dropdown in Submit button event. My code is as under. Please help.
if (!Page.IsPostBack)
{
ReloadDropDown();//This will bound dropdown from list A. It is running successfully.
}private void Submit_Click(){//Saving data in list//I can see data in list while debugging.ReloadDropDown();}
//ASCX Page
<asp:DropDownList ID="drpProfile" runat="server" EnableViewState="true" AutoPostBack="true" OnSelectedIndexChanged="drpProfile_SelectedIndexChanged"></asp:DropDownList> ...
Go to the complete details ...