1.问题1
Repeater1中有个Repeater2,Repeater2中有个Button,我想请问下,在Button的单击按钮下,怎么去找到Repeter2的ID?我要在button单击事件下,绑定Repter1中某一个Repter2中的数据....
protected void Button_Click(object sender, EventArgs e)
{
.
.
.
Repter2.Datasouce=ds.table[0];
Repter2.DataBind();
关键现在找不到Repter2中的ID
}
--------------------------------------------------------------------------------------------------------------2.问题2
Repeater1中有个Repeater2和一个linkbutton,Repeater2中有个Button,在button单击事件下怎么写,可以获得Repeater1的linkbutton的值
Repeater1中有个Repeater2,Repeater2中有个Button,我想请问下,在Button的单击按钮下,怎么去找到Repeter2的ID?我要在button单击事件下,绑定Repter1中某一个Repter2中的数据....
protected void Button_Click(object sender, EventArgs e)
{
.
.
.
Repter2.Datasouce=ds.table[0];
Repter2.DataBind();
关键现在找不到Repter2中的ID
}
--------------------------------------------------------------------------------------------------------------2.问题2
Repeater1中有个Repeater2和一个linkbutton,Repeater2中有个Button,在button单击事件下怎么写,可以获得Repeater1的linkbutton的值
解决方案 »
- 这个插件令人郁闷
- 关羽通过response 下载PDF的问题
- DataGrid导出excel怎么设置表头样式?
- asp.net cookie?
- sql2005使用windows登入连接字符串怎么写
- SqlDataSource取分页数据的问题,重新提问,为什么取不到指定数据而只能返回全部行
- 请帮忙: 我想用纯程序的方法添加一个按钮,为什么没有任何反应呢?只有两行代码.
- 请问用XmlTextWriter创建xml文件时如何把样式表(*.xsl)加进去?
- 这到底是什么问题呢?
- asp.net用mediaplayer播放wmv视频,我电脑上可以看,但其他的电脑看不见?急!!!
- entity framework加泛型
- 请问这种“<a>查找记录</a>,鼠标经过时出现外框,移出时外框消失”效果JS如何设计
//你可以用一个lable标签来存储你要的值,在循环获取
foreach (RepeaterItem item in DlHuiFuRen.Items)
{
lblCommStr = ((Label)item.Controls[0].FindControl("lblAnComm")).Text;
}
2.问题是一样的,循环获得
取得linkbutton不难 repeater1.rows[行编号(0)].FindControl("linkbutton的id")
Label lbID = (Label)DataList1.Items[e.Item.ItemIndex].FindControl("LbBookID");
但目前。我不知道什么方法可以获得到[行编号(0)]
请代码啊
想要找到我点击button的对应的repeater2。我现在无法找到repeater2的id.....