protected void btnAdd_Click(object sender, EventArgs e) { OperatesService service = new OperatesService(); bool isOk = service.AddUser(int.Parse(ddlDepartment.SelectedValue)); if (isOk) { lblInfo.Text = "新增成功"; } else { lblError.Text = "新增失败"; } }