protected void GridView7_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Choose") { GridViewRow row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow; Guid fromid = new Guid(e.CommandArgument.ToString()); Guid id = new Guid(Label3.Text); string man = Session["UserName"].ToString(); int a = bom.Copybom(id, fromid, man); if (a > 0) { ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('复制成功.')", true); } Panel51.Visible = false; Panel52.Visible = false; Panel53.Visible = false; Panel6.Visible = false; UpdatePanel4.Update(); UpdatePanel5.Update(); UpdatePanel6.Update(); } }