62,047
社区成员
发帖
与我相关
我的任务
分享
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType==DataControlRowType.DataRow)
{
//LinkButton1修改Text属性为点击,可以获取lnb.Text
LinkButton lnb = (LinkButton)e.Row.FindControl("LinkButton1");
//LinkButton2 绑定数据库中数据字段id,获取不到lnb2.Text
LinkButton lnb2 = (LinkButton)e.Row.FindControl("LinkButton2");
}
}