c# 怎样把Repeater中的某个数据赋值到textbox里

2025-05-16 11:38:21
推荐回答(1个)
回答1:

protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
TextBox TextBox1= (TextBox )e.Row.FindControl("TextBox1");
TextBox1.Text="你要赋的值!";
}
}