Repeater 取值 在 Repeater中, 如何取第一行中textbox控件中值呢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 protected void Repeater_ItemDataBound(object sender, RepeaterItemEventArgs e){if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==ListItemType.AlternatingItem){ Textbox Textbox= (Textbox )e.Item.FindControl("Textbox"); string str=Textbox.Text;}} textbox= item.FindControl("textbox1") as textbox; Textbox Textbox1 = (Textbox )e.Item.FindControl("Textbox1 "); Repeater1的绑定事件中ItemDataBound e.Item.FindControl("Textbox1 ");Repeater1.Item[0].FindControl() protected void Repeater_ItemDataBound(object sender, RepeaterItemEventArgs e){if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==ListItemType.AlternatingItem){ Textbox Textbox= (Textbox )e.Item.FindControl("Textbox"); string str=Textbox.Text;}} 给你个js的: var beginS = id[i].parentNode.parentNode.childNodes[4].firstChild.nodeValue; id[i]为repeater的一个控件 找到控件 在找行 在找列 找到相应的值! 请教:关于字符串截取的问题!! 怎么把datagrid里的模版列里的控件的ID值控制生成,不用自动生成的ID值? 如何关闭opener窗口??????????? 調查一下廣州.NET軟件開發的工資,主要是做WEB開發,即B/S架構 DataGrid分页重新绑定问题(急) 页面导航求助 WCF中使用通道和使用代理调用服务的区别 关于两个DateGrid的问题,急! 菜鸟问题,如何在页面通过点击一个键打开另一个页面(原页面不卸载)。 举手之劳!请大家写一个ADO.net连接SQL Server的连接字符串 谁有选项卡(C#)的实例 GridView数据绑定的问题
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==ListItemType.AlternatingItem)
{
Textbox Textbox= (Textbox )e.Item.FindControl("Textbox");
string str=Textbox.Text;
}
}
e.Item.FindControl("Textbox1 ");Repeater1.Item[0].FindControl()
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==ListItemType.AlternatingItem)
{
Textbox Textbox= (Textbox )e.Item.FindControl("Textbox");
string str=Textbox.Text;
}
}