partial void DeletePostProfile(PostProfile instance);
partial void InsertPostProfile(PostProfile instance);
partial void UpdatePostProfile(PostProfile instance);
protected void LinkButton3_Click1(object sender, EventArgs e) { TextBox tb_NewName = (TextBox)GridView1.FooterRow.FindControl("tb_NewName"); var pp = new PostProfile(); pp.Name = tb_NewName.Text; _eJDataContext.PostProfile.InsertOnSubmit(pp); try { _eJDataContext.SubmitChanges(); } catch { _eJDataContext.ChangeConflicts.ResolveAll(RefreshMode.KeepChanges); { try { _eJDataContext.SubmitChanges(); } catch (Exception exept) { Console.WriteLine("Error: " + exept); } } } FillCustomerInGrid(); }