Menu

#150 DropDownList content not updated

open
nobody
None
5
2010-06-24
2010-06-24
Anonymous
No

Hello, I put an athem dropdownlist control in an asp.net page.
In the code-behind, on a callback event coming from another control, I'm filling the content of the dropdownlist from a database query.
Everything's works well, but the content of the dropdownlist is not updated.
I had to put the dropdownlist into an anthem update panel to make it work.

Before:
<anthem:DropDownList ID="ddlMyDropDown" runat="server"></anthem:DropDownList>
Before II (with the AutoUpdate):
<anthem:DropDownList ID="ddlMyDropDown" runat="server" AutoUpdateAfterCallBack="true"></anthem:DropDownList>

Both "before" version didn't work (with or without the AutoUpdateAfterCallBack).

And the solution:
<anthem:Panel runat="server" ID="pnlMyUpdatePanel" AutoUpdateAfterCallBack="true">
<anthem:DropDownList ID="ddlMyDropDown" runat="server">
</anthem:DropDownList>
</anthem:Panel>

Then it works perfectly.
Hope this will maybe help you!

Discussion


Log in to post a comment.