开发者

Update panel does not make a postback for user control

开发者 https://www.devze.com 2023-02-23 08:51 出处:网络
The update panel does not make a postback when calling Update ! <ajax:TabPanel ID=\"EmployeesTab\" runat=\"server\">

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

精彩评论

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