读书人

Repeater1嵌套Repeater2,该如何解决

发布时间: 2013-04-21 21:18:07 作者: rapoo

Repeater1嵌套Repeater2
怎么获取Repeater2中文本框的值
[解决办法]
怎么获取Repeater2中文本框的值 js?,cs?
[解决办法]
给截个图,问题会比较明白,
取单个的就用 (rpt1.findcontrol("rpt2").findcontrol("文本框ID") as TextBox).text

rep2中如果有多个id相同的textbox,我觉得可以使用rept2的 itemdatabinding 事件
(sender as textbox)。text

读书人网 >asp.net

热点推荐