protected void btnAddFJ_Click(object sender, EventArgs e)
{
Button bt = sender as Button;
RepeaterItem rptItem = bt.Parent as RepeaterItem;
TextBox txt = rptItem.FindControl("txtFJName") as TextBox;
//ScriptManager.RegisterStartupScript(this.btnShow, this.GetType(), "myscript", "alert('" + txt.Text + "');", true);
ScriptManager.RegisterStartupScript(this.btnShow, this.GetType(), "myscript", "navtabshow();", true);
}
效果:
asp.net获取Repeater里面Button提交后的文本框的值
猜你喜欢
转载自blog.csdn.net/adsdassadfasdfasdf/article/details/8258721
今日推荐
周排行