protected void btnSave_Click(object sender, EventArgs e) { MembershipController membershipCntrllr = new MembershipController(); GetDataFromForm(); if (membershipCntrllr.Save(EntUser)) { Response.Redirect("Default.aspx"); } }
protected void btnSave_Click(object sender, EventArgs e) { MembershipController membershipCntrllr = new MembershipController(); GetDataFromForm(); if (membershipCntrllr.Save(EntUser)) { Response.Redirect("Default.aspx"); } else { lblError.Visible = true; lblError.Text = "Error al guardar la información"; } }