protected void btnUpdate_Click(object sender, EventArgs e) { dbProcedures db = new dbProcedures(); string strResult = ""; strResult = db.UpdateMemberInfo(lblMemberId.Text, txtUsername.Text, txtPassword.Text, cbInvalidPassword.Checked, cbInactive.Checked, txtFirstName.Text, txtLastName.Text, txtCarrier.SelectedValue, txtEmployerGroup.Text); db.Close(); if (strResult == "-1") { Response.Redirect("~/Members.aspx?message=ErrorUsernameAlreadyExists"); } else { Response.Redirect("~/MemberDetail.aspx?id=" + lblMemberId.Text); } }