Hello
I want to do Dropdown selected index changed get data fill in textbox etc. How can I do. Can anyone help me?
string ID = drpkategori.SelectedItem.Value;
using (KargocuEntities kargo = new KargocuEntities())
{
var kargotakip = from t1 in kargo.KargoEkle
join t2 in kargo.KargoDetay on
t1.ID equals t2.KargoID
where t1.GonderiNo == ID
select t2;
int i = 0;
foreach (var k in kargotakip)
{
txtaliciad.Text = k.KargoEkle.Alici;
Tarih.SelectedDate = Convert.ToDateTime(k.KargoEkle.Tarih);
txtgonderenad.Text = k.KargoEkle.Gonderen;
txtaliciad.Text = k.KargoEkle.Alici;
txtagirlik.Text = k.KargoEkle.Agirlik;
txtvarisulkesi.Text = k.KargoEkle.VarisUlkesi;
txtservis.Text = k.KargoEkle.Servis;
TeslimTarih.SelectedDate = Convert.ToDateTime(k.KargoEkle.TeslimTarihi);
txtteslimalan.Text = k.KargoEkle.TeslimAlan;
i++;
}
}