Esempio n. 1
0
        public void updateKullanici()
        {
            Kullanici kullanici = kManager.findKullanici(1);

            kullanici.Ad         = "ismail";
            kullanici.Soyad      = "ufakcan";
            kullanici.EMailAdres = "*****@*****.**";
            kManager.update(kullanici);
        }
        protected void dListKullanici_ItemCommand(object source, DataListCommandEventArgs e)
        {
            Label lblId = e.Item.FindControl("lblId") as Label;

            // Button btnDelete = e.Item.FindControl("btnDelete") as Button;
            // Button btnEdit = e.Item.FindControl("btnEdit") as Button;


            if (e.CommandName == "DELETE")
            {
                kullaniciSil(int.Parse(lblId.Text.Trim()));
                kullaniciListele();
            }


            if (e.CommandName == "EDIT")
            {
                kullanici        = kManager.findKullanici(int.Parse(lblId.Text.Trim()));
                txtAdi.Text      = kullanici.Ad;
                txtSoyadi.Text   = kullanici.Soyad;
                txtMail.Text     = kullanici.EMailAdres;
                e.Item.BackColor = System.Drawing.Color.LimeGreen;
            }
        }