protected void SaveAuthorButton_Click(object sender, EventArgs e) { AuthorsLogic alogic = new AuthorsLogic(); bool saveSuccess = alogic.AddAuthor(AuthorName.Text); if (saveSuccess) { ReturnToSender(); } else { FailureText.Text = "Unable to add a new author to database."; ErrorMessage.Visible = true; } }