protected void BtnInseraree_Click(object sender, EventArgs e)
        {
            var st2 = new Echipa
            {
                EchipaId = int.Parse(TextBox8.Text),
                Denumire = TextBox9.Text,
                Liga     = int.Parse(TextBox10.Text)
            };

            db.Echipas.InsertOnSubmit(st2);
            db.SubmitChanges();
            ScriptManager.RegisterStartupScript(this, this.GetType(), "script", "alert('Succes la inserare!');", true);
            LoadData3();
        }
 private void detach_Echipas(Echipa entity)
 {
     this.SendPropertyChanging();
     entity.Liga1 = null;
 }
 private void attach_Echipas(Echipa entity)
 {
     this.SendPropertyChanging();
     entity.Liga1 = this;
 }
 partial void DeleteEchipa(Echipa instance);
 partial void UpdateEchipa(Echipa instance);
 partial void InsertEchipa(Echipa instance);