UpdatePanel的改变我的表格样式 [英] UpdatePanel change my Table style
本文介绍了UpdatePanel的改变我的表格样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用嵌套的用户控件在我的表格
当页面加载我没有任何问题
但是,当我检查我的复选框,这是一个UpdatePanel我的整体风格毁了
问题究竟是什么?
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;
}
}
当我不使用更新面板它的工作,但我想用Ajax来做到这一点。
when I'm not using update panel its working but i want to do it with Ajax
推荐答案
我改变我的code这样
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>
当我我的用户的表添加到div元素,它工作正常。
when i add my usercontrol's table to div element it works fine .
谢谢大家。
这篇关于UpdatePanel的改变我的表格样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文