/// <summary>
 /// This handler causes server-side validation and adds to a list of books based on web form input.
 /// </summary>
 protected void saveButton_Click(object sender, EventArgs e)
 {
     if (Page.IsValid)
     {
         con = new ConnectionClass();
         con.AddEntry(isbnTextBox.Text, nameTextBox.Text, authorTextBox.Text, genreDropDownList.SelectedItem.Text, pagesTextBox.Text, lendedCheckBox.Checked, friendNameTextBox.Text, commentsTextBox.Text);
     }
 }