Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            List <EntityOgrenci> OgrList = BLLOgreci.BllListele();

            Repeater1.DataSource = OgrList;
            Repeater1.DataBind();
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int x = Convert.ToInt32(Request.QueryString["OGRID"]);

            Response.Write(x);
            EntityOgrenci ent = new EntityOgrenci();

            ent.Id = x;
            BLLOgreci.OgrenciSilBLL(ent.Id);
            Response.Redirect("OgrenciListesi.aspx");
        }
Exemplo n.º 3
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            EntityOgrenci ent = new EntityOgrenci();

            ent.Ad       = TxtAd.Text;
            ent.Soyad    = TxtSoyad.Text;
            ent.Numara   = TxtNumara.Text;
            ent.Sifre    = TxtSifre.Text;
            ent.Fotograf = TxtFoto.Text;
            BLLOgreci.OgrenciEkleBLL(ent);
        }
        protected void BtnKaydet_Click(object sender, EventArgs e)
        {
            EntityOgrenci ent = new EntityOgrenci();

            ent.Ad       = TxtAd.Text;
            ent.Soyad    = TxtSoyad.Text;
            ent.Numara   = TxtNumara.Text;
            ent.Sifre    = TxtSifre.Text;
            ent.Fotograf = TxtFoto.Text;
            ent.Id       = Convert.ToInt32(TxtId.Text);
            BLLOgreci.OgrenciGuncelleBLL(ent);
            Response.Redirect("OgrenciListesi.aspx");
        }
        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 = BLLOgreci.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();
            }
        }