protected void LinkButton3_Click(object sender, EventArgs e) { TextBox tb_NewName = (TextBox)GridView1.FooterRow.FindControl("tb_NewName"); var test = new Tests(); test.Name = tb_NewName.Text; _eJDataContext.Tests.InsertOnSubmit(test); try { _eJDataContext.SubmitChanges(); } catch { _eJDataContext.ChangeConflicts.ResolveAll(RefreshMode.KeepChanges); { try { _eJDataContext.SubmitChanges(); } catch (Exception exept) { Console.WriteLine("Error: " + exept); } } } FillCustomerInGrid(); }
partial void UpdateTests(Tests instance);
partial void DeleteTests(Tests instance);
partial void InsertTests(Tests instance);