protected void BtnInsert_Click(object sender, EventArgs e)
        {
            var st = new Jucator
            {
                JucatorId = int.Parse(TextBox1.Text),
                Nume      = TextBox2.Text,
                Prenume   = TextBox3.Text,
                Varsta    = int.Parse(TextBox4.Text),
                EchipaID  = int.Parse(TextBox5.Text),
            };

            db.Jucators.InsertOnSubmit(st);
            db.SubmitChanges();
            ScriptManager.RegisterStartupScript(this, this.GetType(), "script", "alert('Succes la inserare!');", true);
            LoadData();
        }
 partial void DeleteJucator(Jucator instance);
 partial void UpdateJucator(Jucator instance);
 partial void InsertJucator(Jucator instance);
 private void detach_Jucators(Jucator entity)
 {
     this.SendPropertyChanging();
     entity.Echipa = null;
 }
 private void attach_Jucators(Jucator entity)
 {
     this.SendPropertyChanging();
     entity.Echipa = this;
 }