protected void btnAdd_Click(object sender, EventArgs e) { Plot input = new Plot(); if (Validator.gotBadWords(txtcurrDate.Text) == false && Validator.IsitFilledin(txtcurrDate.Text) == true) { input.CurrDate = txtcurrDate.Text; } else { lblFeedback.Text = "Validation Failed Try again."; return; } if (Validator.gotBadWords(ddcemetary.SelectedValue) == false && Validator.IsitFilledin(ddcemetary.SelectedValue) == true) { input.Cemetary = ddcemetary.SelectedValue; } else { lblFeedback.Text = "Validation Failed Try again."; return; } if (Validator.gotBadWords(txtfirstName.Text) == false && Validator.IsitFilledin(txtfirstName.Text) == true) { input.FirstName = txtfirstName.Text; } else { lblFeedback.Text = "Validation Failed Try again."; return; } if (Validator.gotBadWords(txtmiddleName.Text) == false) { input.MiddleName = txtmiddleName.Text; } else { lblFeedback.Text = "Validation Failed Try again."; return; } if (Validator.gotBadWords(txtlastName.Text) == false && Validator.IsitFilledin(txtlastName.Text) == true) { input.LastName = txtlastName.Text; } else { lblFeedback.Text = "Validation Failed Try again."; return; } if (Validator.gotBadWords(ddtitle.SelectedValue) == false && Validator.IsitFilledin(ddtitle.SelectedValue) == true) { input.Title = ddtitle.SelectedValue; } else { lblFeedback.Text = "Validation Failed Try again."; return; } if (Validator.gotBadWords(txtCalDOB.Text) == false && Validator.IsitFilledin(txtCalDOB.Text) == true) { input.DateOB = txtCalDOB.Text; } else { lblFeedback.Text = "Validation Failed Try again."; return; } if (Validator.gotBadWords(txtCalDOD.Text) == false && Validator.IsitFilledin(txtCalDOD.Text) == true) { input.DateOD = txtCalDOD.Text; } else { lblFeedback.Text = "Validation Failed Try again."; return; } //not sure how to run check boxes if (checkVet.Checked) { input.Vet = checkVet.Checked; } else { input.Vet = false; } if (Validator.gotBadWords(ddbranch.SelectedValue) == false) { input.Branch = ddbranch.SelectedValue; } else { lblFeedback.Text = "Validation Failed Try again."; return; } if (Validator.gotBadWords(ddstone.SelectedValue) == false && Validator.IsitFilledin(ddstone.SelectedValue) == true) { input.Stone = ddstone.SelectedValue; } else { lblFeedback.Text = "Validation Failed Try again."; return; } if (Validator.gotBadWords(txtnote.Text) == false) { input.Note = txtnote.Text; } else { lblFeedback.Text = "Validation Failed Try again."; return; } lblFeedback.Text = input.AddAPlot(); }