The update panel does not make a postback when calling Update
!
<ajax:TabPanel ID="EmployeesTab" runat="server">
<ContentTemplate>
<asp:UpdatePanel runat="server" ID="MyUpdatePanel" UpdateMode="Conditional">
<ContentTemplate>
<GW:MyUserControl ID="MyUserControlId"
runat="server" />
</ContentTemplate>
</asp:Updat开发者_Python百科ePanel>
</ContentTemplate>
</ajax:TabPanel>
private void PopulateEmployees()
{
MyUserControlId.EntityId = SelectedEntity.Id;
MyUpdatePanel.Update();
}
Any help!
The UpdatePanel has known problems when inside an AjaxControlToolkit templated control.
This is an old article, but the issue still exists in the current version of the AjaxControlToolkit: http://blogs.sitepoint.com/atlasupdatepanel-template-really-darned-kewl/
The suggested workaround is to wrap the TabPanel in the UpdatePanel rather than vice-versa.
精彩评论