Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            PurBLL pp = new PurBLL();

            Repeater1.DataSource = pp.getPurBLL();
            Repeater1.DataBind();
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ProdBLL   p  = new ProdBLL();
            DataTable dt = p.AllProdBLL();

            if (dt.Rows.Count > 0)
            {
                //products.Items.Clear();
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    products.Items.Add(dt.Rows[i]["prd_title"].ToString());
                }
            }
            else
            {
                Response.Write("<script>alert('Products Not Found..!')</script>");
            }

            SupBLL    s   = new SupBLL();
            DataTable dtb = s.AllSupBLL();

            if (dtb.Rows.Count > 0)
            {
                //supply.Items.Clear();
                for (int i = 0; i < dtb.Rows.Count; i++)
                {
                    supply.Items.Add(dtb.Rows[i]["name"].ToString());
                }
            }
            else
            {
                Response.Write("<script>alert('Supplyers Not Found..!')</script>");
            }


            PurBLL    pp  = new PurBLL();
            DataTable dtt = pp.getPurBLL();

            GridView1.DataSource = dtt;
            GridView1.DataBind();
        }