protected void Lnk_Click(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Rec") { this.ModelID = DataConverter.CLng(base.Request.QueryString["ModelID"]); this.bll.Reset(e.CommandArgument.ToString());//将状态改回0 Response.Write("<script language=javascript>alert('还原成功!');location.href='PageRecyle.aspx?ModelID=" + ModelID + "';</script>"); } else if (e.CommandName == "Del") { bll.Del(Convert.ToInt32(e.CommandArgument)); function.WriteSuccessMsg("删除成功"); HttpContext.Current.Response.Write("<script>alert('删除成功');location=location;</script>"); } }//还原与删除