Пример #1
0
 protected void Insert(object sender, EventArgs e)
 {
     try
     {
         db.AddBook(new Book {
             Name = txtName.Text
         });
         this.BindGrid();
     }
     catch (Exception ex)
     {
         exceptionLable.Text = ex.Message;
     }
 }