private void UpdateForm() { if (string.IsNullOrEmpty(Request["Id"])) { qzclient = new QZSpringPartner(); } else { qzclient = bllqz.GetOne(Guid.Parse(Request["Id"])); } qzclient.Enable = cbxEnable.Checked; qzclient.FriendlyId = tbxFriendlyId.Text; qzclient.Name = tbxClientName.Text; qzclient.RequestSource = tbxRequestSource.Text; }
protected void Page_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(Request["Id"])) { isNew = false; } if (!IsPostBack) { if (!isNew) { Guid id = Guid.Parse(Request["Id"]); qzclient= bllqz.GetOne(id); LoadForm(); } else { qzclient = new QZSpringPartner(); } } }