Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int x = Convert.ToInt32(Request.QueryString["OGRID"].ToString());

        TxtId.Text    = x.ToString();
        TxtId.Enabled = false;
        if (Page.IsPostBack == false)
        {
            List <EntityOgrenci> OgrList = BLLOgrenci.BllDetay(x);
            TxtAd.Text       = OgrList[0].OrgAd.ToString();
            TxtSoyad.Text    = OgrList[0].OgrSoyad.ToString();
            TxtNumara.Text   = OgrList[0].OgrNumara.ToString();
            TxtFotograf.Text = OgrList[0].OgrFotograf.ToString();
            TxtSifre.Text    = OgrList[0].OgrSifre.ToString();
        }
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int x = Convert.ToInt32(Request.QueryString["OGRID"].ToString());

        Txtıd.Text    = x.ToString();
        Txtıd.Enabled = false;

        if (Page.IsPostBack == false)
        {
            List <EntityOgrenci> OgrList = BLLOgrenci.BllDetay(x);
            TxtAd.Text     = OgrList[0].AD.ToString();
            TxtSoyad.Text  = OgrList[0].SOYAD.ToString();
            TxtNumara.Text = OgrList[0].NUMARA.ToString();
            TxtFoto.Text   = OgrList[0].FOTOGRAF.ToString();
            TxtSifre.Text  = OgrList[0].SIFRE.ToString();
        }
    }
Пример #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int OgrenciId = Convert.ToInt32(Request.QueryString["OgrenciID"].ToString());

        TxtOgrenciId.Text    = OgrenciId.ToString();
        TxtOgrenciId.Enabled = false;

        if (Page.IsPostBack == false)
        {
            List <EntityOgrenci> ogrencidetay = BLLOgrenci.OgrenciDetay(OgrenciId);

            TxtOgrenciAd.Text       = ogrencidetay[0].OgrenciAd.ToString();
            TxtOgrenciSoyad.Text    = ogrencidetay[0].OgrenciSoyad.ToString();
            TxtOgrenciNumara.Text   = ogrencidetay[0].OgrenciNumara.ToString();
            TxtOgrenciMail.Text     = ogrencidetay[0].OgrenciMail.ToString();
            TxtOgrenciSifre.Text    = ogrencidetay[0].OgrenciSifre.ToString();
            TxtOgrenciFotograf.Text = ogrencidetay[0].OgrenciFotograf.ToString();
            TxtOgrenciBakiye.Text   = ogrencidetay[0].OgrenciBakiye.ToString();
        }
    }
Пример #4
0
        private void btnGuncelle_Click(object sender, EventArgs e)
        {
            try
            {
                EntityOgrenci ent_guncelle = new EntityOgrenci();
                ent_guncelle.Ad           = txtAd.Text;
                ent_guncelle.Soyad        = txtSoyad.Text;
                ent_guncelle.Fotograf     = txtFotograf.Text;
                ent_guncelle.KulupID      = Convert.ToInt32(cmbKulup.SelectedValue);
                ent_guncelle.OgrencilerID = Convert.ToInt32(txtID.Text);
                BLLOgrenci.Guncelle(ent_guncelle);
            }
            catch (Exception)
            {
                MessageBox.Show("Lütfen seçtiğiniz değerlerin doğruluğundan emin olun");
            }

            MessageBox.Show("Öğrenci bilgileri güncellendi");
            Listele();
        }
Пример #5
0
        void OgrenciListesi()
        {
            List <EntityOgrenci> OgrList = BLLOgrenci.LISTELE();

            dataGridView1.DataSource = OgrList;
        }