Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            List <EntityOgretmen> OgrtList = BLL_Ogretmen.BLLListele();

            Repeater1.DataSource = OgrtList;
            Repeater1.DataBind();
        }
Beispiel #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            EntityOgretmen ent = new EntityOgretmen();

            ent.Ogrtad    = TxtAd.Text;
            ent.Ogrtbrans = Convert.ToInt32(TxtBrans.Text);
            BLL_Ogretmen.OgretmenEkleBLL(ent);
        }
Beispiel #3
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            EntityOgretmen ent = new EntityOgretmen();

            ent.Ogrtad    = TxtAd.Text;
            ent.Ogrtbrans = Convert.ToInt32(TxtBrans.Text);
            ent.Ogrtid    = Convert.ToInt32(TxtId.Text);
            BLL_Ogretmen.OgretmenGuncelleBLL(ent);
            Response.Redirect("Ogretmenler.aspx");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            int x = Convert.ToInt32(Request.QueryString["OGRTID"]);

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

            ent.Ogrtid = x;
            BLL_Ogretmen.OgretmenSilBLL(ent.Ogrtid);
            Response.Redirect("Ogretmenler.aspx");
        }
Beispiel #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int x = Convert.ToInt32(Request.QueryString["OGRTID"].ToString());

            TxtId.Text    = x.ToString();
            TxtId.Enabled = false;

            if (Page.IsPostBack == false)
            {
                List <EntityOgretmen> OgrtList = BLL_Ogretmen.BLLDetay(x);
                TxtAd.Text    = OgrtList[0].Ogrtad.ToString();
                TxtBrans.Text = OgrtList[0].Ogrtbrans.ToString();
            }
        }