62,046
社区成员
发帖
与我相关
我的任务
分享
string str=((TextBox)this.GridViewEmail.Rows[e.RowIndex].FindControl("txtemail")).Text;
这样就得到了!!!!this.Label1.Text = ((TextBox)this.GridViewEmail.Rows[e.RowIndex].FindControl("txtemail")).Text;
this.Label1.Text = ((TextBox)this.GridViewEmail.Rows[e.RowIndex].FindControl("txtemail")).Text;
string str = "";
foreach (GridViewRow row in this.GridViewEmail.Rows)
{
str += ((TextBox)row.FindControl("txtemail")).Text + ",";
}
this.Label1.Text = str;