private void btnOgrenciGuncelle_Click(object sender, EventArgs e) { //Güncelleme Bilgilerinin Arayüzden Alınması ogrenci.ogrenciNo = txtOgrenciNo.Text; ogrenci.ogrenciAd = txtOgrenciAd.Text; ogrenci.ogrenciSoyad = txtOgrenciSoyad.Text; ogrenci.bolumID = Convert.ToInt32(cboxBolum.SelectedValue); ogrenci.adres = txtAdres.Text; ogrenci.memleketAdres = txtMemleketAdres.Text; ogrenci.kayitTarih = DateTime.Now; ogrenci.cepTelefon = txtCepTelefonu.Text; ////////////////////////////////////////////////// //Güncel Bilgilerin DB'ye Kayıt Edilmesi OgrenciGuncelleFacade ogrenciGuncelle = new OgrenciGuncelleFacade(); ogrenciGuncelle.Guncelle(ogrenci); ////////////////////////////////////////////////// this.Close(); }
}// protected void btnOgrenciGuncelle_DirectClick(object sender, DirectEventArgs e) { ogrenci.id = idDegeri; ogrenci.ogrenciNo = txtOgrenciNo.Text; ogrenci.ogrenciAd = txtOgrenciAd.Text; ogrenci.ogrenciSoyad = txtOgrenciSoyad.Text; ogrenci.bolumID = Convert.ToInt32(cmbBolum.SelectedItem.Value); //ogrenci.fak= Convert.ToInt32( cmbFakulte.SelectedItem.Value ); ogrenci.adres = txtAdres.Text; ogrenci.memleketAdres = txtMemleketAdres.Text; ogrenci.kayitTarih = DateTime.Now; ogrenci.cepTelefon = txtCepTelefon.Text; ////////////////////////////////////////////////// //Güncel Bilgilerin DB'ye Kayıt Edilmesi OgrenciGuncelleFacade ogrenciGuncelle = new OgrenciGuncelleFacade(); ogrenciGuncelle.Guncelle(ogrenci); ////////////////////////////////////////////////// ogrenciListesiModal.Close(); }