protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName.ToString() == "se")
{
LinkButton myL = (LinkButton)e.CommandSource;
int Index = ((GridViewRow)(myL.NamingContainer)).RowIndex;//獲得行號
string id = GridView1.DataKeys[Index].Value.ToString();//獲得id
}
}