protected void btnEdit_Click(object sender, EventArgs e) { string pid = Request.QueryString["pid"]; if (!string.IsNullOrEmpty(pid)) { Valuer v = new Valuer(); v.SavePageObjects(this.Page, pid, "personal", "0"); Response.Redirect("personal.aspx?pid=" + pid); } }
protected void btnAccount_Click(object sender, EventArgs e) { string pid = AddAccount(); if (pid != "0") { Valuer v = new Valuer(); v.SavePageObjects(this.Page, pid, "personal", "0"); Response.Redirect("personal.aspx?pid=" + pid); } else { Response.Write("<script>alert('Sorry. The National-code has been registered.')</script>"); } }