示例#1
0
        protected void btnAlter_Click(object sender, EventArgs e)
        {
            GA gAdmin = new GA();

            gAdmin.UserName  = txtStauffName.Text;
            gAdmin.TrueName  = txtName.Text;
            gAdmin.IdCardNum = txtIDcardNO.Text;
            gAdmin.PassWord  = txtPassword.Text;
            GAController gAdminCon = new GAController();

            if (gAdminCon.GAAlterinfo(gAdmin) != 0)
            {
                this.lblCheck.Text = "修改成功!";
                //this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('" + "修改成功" + "');</script>");
            }
            else
            {
                this.lblCheck.Text = "修改失败!";
                //this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('" + "修改失败" + "');</script>");
            }
        }