protected void Page_Load(object sender, EventArgs e) { List <EntityDers> degerler = BLLDers.DersListesi(); Repeater1.DataSource = degerler; Repeater1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { List <EntityDers> ders = BLLDers.DersListesi(); DersListe.DataSource = BLLDers.DersListesi(); DersListe.DataTextField = "DersAd"; DersListe.DataValueField = "DersID"; DersListe.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { List <EntityDers> degerler = BLLDers.DersListesi(); if (Page.IsPostBack == false) { DropDownList1.DataSource = degerler; DropDownList1.DataTextField = "DersAd"; DropDownList1.DataValueField = "Id"; DropDownList1.DataBind(); } }