protected void Button2_Click(object sender, EventArgs e)
{
GridViewRow row = ((Button)sender).Parent.Parent as GridViewRow;
string id = GridView1.DataKeys[row.RowIndex].Value.ToString(); //获得该行主键
}
protected void Button2_Click(object sender, EventArgs e)
{
GridViewRow row = ((Button)sender).Parent.Parent as GridViewRow;
string id = GridView1.DataKeys[row.RowIndex].Value.ToString(); //获得该行主键
}