Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            LeftMenuHazirla();
            if (Session["s1"] != null)
            {
                var kul = (Models.Kullanicilar)Session["s1"];
                //lblInfo1.Text = "Hoşgeldiniz " + kul.Adi + " " + kul.Soyadi;
            }


            #region !IsPostBack
            if (!IsPostBack)
            {
                Models.PoliklinikEntities5 pContent = new Models.PoliklinikEntities5();
                var res = from c in pContent.Sepet where c.SessionID == Session.SessionID select c;
                //int SepetSayi = res.ToList().Count;
                //SepetimLabel.Text = "Sepetim(" + SepetSayi.ToString() + ")";
                Data.DataKatmani dk = new Data.DataKatmani();
                try
                {
                    if (Request.QueryString["KatID"] == null)
                    {
                        DataList1.DataSource = dk.UrunListe(1, ref err1);
                        DataList1.DataBind();
                    }
                    else
                    {
                        DataList1.DataSource = dk.UrunListe(int.Parse(Request.QueryString["KatID"]), ref err1);
                        DataList1.DataBind();
                    }
                }
                catch (Exception ex)
                {
                    err = ex.Message;
                    throw;
                }
            }
            #endregion
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Data.DataKatmani dk = new Data.DataKatmani();
         try
         {
             DataList3.DataSource = dk.UrunListe(int.Parse(Request.QueryString["AltKatID"]), ref err1);
             DataList3.DataBind();
         }
         catch (Exception ex)
         {
             err = ex.Message;
             throw;
         }
     }
 }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Data.DataKatmani dk = new Data.DataKatmani();
                try
                {

                    DataList3.DataSource = dk.UrunListe(int.Parse(Request.QueryString["AltKatID"]),ref err1);
                    DataList3.DataBind();
                }
                catch (Exception ex)
                {
                    err = ex.Message;
                   throw;
                }

            }
        }
Ejemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            LeftMenuHazirla();
            if (Session["s1"] != null)
            {

                var kul = (Models.Kullanicilar)Session["s1"];
                //lblInfo1.Text = "Hoşgeldiniz " + kul.Adi + " " + kul.Soyadi;
            }

            #region !IsPostBack
            if (!IsPostBack)
            {
                Models.PoliklinikEntities5 pContent = new Models.PoliklinikEntities5();
                var res = from c in pContent.Sepet where c.SessionID == Session.SessionID select c;
                //int SepetSayi = res.ToList().Count;
                //SepetimLabel.Text = "Sepetim(" + SepetSayi.ToString() + ")";
                Data.DataKatmani dk = new Data.DataKatmani();
                try
                {

                    if (Request.QueryString["KatID"]== null)
                    {
                        DataList1.DataSource = dk.UrunListe(1, ref err1);
                        DataList1.DataBind();

                    }
                    else
                    {
                        DataList1.DataSource = dk.UrunListe(int.Parse(Request.QueryString["KatID"]), ref err1);
                        DataList1.DataBind();

                    }
                }
                catch (Exception ex)
                {
                    err = ex.Message;
                    throw;
                }

            }
            #endregion
        }