protected void Insert(object sender, EventArgs e) { try { db.AddMovie(new Movy { Name = txtName.Text }); this.BindGrid(); } catch (Exception ex) { exceptionLable.Text = ex.Message; } }