private void button1_Click(object sender, EventArgs e) { PersonV2 temp = new PersonV2(); temp.Fname = FirstName.Text; temp.MName = middle.Text; temp.Lname = last.Text; temp.Street1 = address.Text; temp.Street2 = apt.Text; temp.City = city.Text; temp.State = state.Text; temp.Zip = zip.Text; temp.Phone = homephone.Text; temp.Email = emailaddress.Text; temp.CellPhone = cellPhone.Text; temp.Facebook = facebook.Text; if (!temp.Feedback.Contains("ERROR:")) { lblFeedback.Text = temp.AddRecord(); // if there are no errors add to database } else { lblFeedback.Text = temp.Feedback; // if the form contains errors ouput feedback } }