UpdatePanel change my Table style

ぃ、小莉子 提交于 2019-12-11 13:02:08

问题


i use nested usercontrol in my form when page load i dont have any problem but when i checked my checkBox which is in an updatepanel my whole style ruined what is the problem ?

foreach (TableCell item in TC_mdfItems)
    {
        foreach (var item2 in item.Controls)
        {
            ((item2 as MdfItem).FindControl("CHKB_Select") as CheckBox).Checked = this.WCHK_RowSelector.Checked;
        }
    }

when I'm not using update panel its working but i want to do it with Ajax


回答1:


i change my code this way

<asp:UpdatePanel ID="UP_MdfRow" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
    <div id="TableDIV" runat="server"></div>
</ContentTemplate>

when i add my usercontrol's table to div element it works fine .

thank you all



来源:https://stackoverflow.com/questions/31354600/updatepanel-change-my-table-style

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!