repeater里面的onclick事件怎么样获取到文本框值
2个回答
展开全部
楼上说的很清楚了 我这就上个例子
protected void mm(object sender, EventArgs e)
{
Button button = sender as Button;
RepeaterItem item = button.Parent as RepeaterItem;
Label labe = item.FindControl("lable") as Label;
Response.Write("<script>alert('"+labe.Text+"');</script>");
}
protected void mm(object sender, EventArgs e)
{
Button button = sender as Button;
RepeaterItem item = button.Parent as RepeaterItem;
Label labe = item.FindControl("lable") as Label;
Response.Write("<script>alert('"+labe.Text+"');</script>");
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询