提交数据时获取双重绑定的Repeater中子Repeater的textbox的文本值? 本帖最后由 caozhy 于 2012-09-01 20:58:50 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不好意思,可能是我说不明白,目的就是点击提交按钮获取到childRepeater的所有TextBox 的值但是我现在没法获取到ID为 FieldTexValue 的这个TEXTBOX对象 for (int i = 0; i < parentRepeater.Items.Count; i++) { Repeater childrepeater = parentRepeater.Items[i].FindControl("childRepeater") as Repeater; for (int j = 0; j < childrepeater.Items.Count; j++) { TextBox txtb = childrepeater.Items[j].FindControl("FieldTexValue") as TextBox; txt = txtb.Text; } }搞定了24小时够了结贴 SQL数据导入到Excel中 asp.net知道iis网站名如何得到该网站物理路径 socket客户端的问题。 log4net的用法 求助关于C#程序获取udp端口数据的问题 数组怎么传值 高手帮忙! vs2008通过odbc连接sybase 15.2报错! (急啊急啊急啊!!!!!!)C#里面子窗口给父窗口通信问题 如果图像比 PictureBox 大时怎样才能使pictureBox显示滚动条? 非泛型接口中的泛型方法如何实现 实例化word文档
不好意思,可能是我说不明白,
目的就是点击提交按钮获取到childRepeater的所有TextBox 的值
但是我现在没法获取到ID为 FieldTexValue 的这个TEXTBOX对象
{
Repeater childrepeater = parentRepeater.Items[i].FindControl("childRepeater") as Repeater;
for (int j = 0; j < childrepeater.Items.Count; j++)
{
TextBox txtb = childrepeater.Items[j].FindControl("FieldTexValue") as TextBox; txt = txtb.Text; }
}搞定了24小时够了结贴