protected void Button1_Click(object sender, EventArgs e) { VPBLL.Company.CompanyHelper help = new VPBLL.Company.CompanyHelper(); VPBLL.Company.ABiCompany company = new VPBLL.Company.ABiCompany(); company.ID = this.companyIDHid.Value; company.CompanyName = this.companyName.Value; company.CompanyCode = this.companyCode.Value; if (string.IsNullOrEmpty(company.ID) == false) help.updateCompany(company); else help.addCompany(company); ClientScript.RegisterStartupScript(GetType(), "alertpwd", "<script>alert('保存成功');</script>"); }