问题
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