页面加载后 if (!IsPostBack){}中如何找到Repeater控件中的ItemTemplate模板中的子控件
解决方案 »
- 未在本地计算机上注册“Microsoft.Jet.OLEDB.4.0”提供程序
- 不能asp.net自带组件如何将图片上传到服务器目录
- 请教,BT的面试题!!!!
- 从DropDownList控件列表框中获取某项显示的文本?
- VS2005 相关
- 求C#或vb。net整站源码,简单的新闻发布系统,供学习用,最好有详细文档 谢谢了!
- imagebutton 在datalist 里面 findcontrol 的控件读不出来 请指教
- 在web页上如何实现打印
- 在winForm中,如何对输入的文本进行格式编辑,就跟IE下的编辑器功能一样的,只要实现基本的格式如居中,居左,右,调整字体的颜色等。请各位帮忙解答!
- 为什么Web Form上放上去的TreeView控件调试运行时不显示
- fckeditor编辑器的问题(编辑器走形)
- 搜索页面时查询结果后在当前页面进行操作跳新页面,搜索文本框的值还在,如何控制
<ItemTemplate>
<asp:Panel ID="PnlInfo" runat="server" Visible="false" CssClass="Pnl">
<asp:Label ID="lblR_nid" runat="server" Text='<%# Eval("R_nid") %>'></asp:Label>
<asp:Button ID="btnDelReply" runat="server" Text="删除回复" onclick="btnDelReply_Click" />
</asp:Panel>
<ItemTemplate>
后台如果是指定的用户进来 我要让 PnlInfo = true
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
DataRowView row = (DataRowView)e.Item.DataItem;
TextBox txt=e.Item.FindControl("TextBox ") as TextBox;
}
}
foreach( RepeaterItem item in this.Repeater1.Items )
{
TextBox txt=item.FindControl("TextBox1") as TextBox;
if(txt!=null){}
}