开发者

Update panel does not make a postback for user control

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜