Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            /*
             * if (!IsPostBack)
             * {
             *  DisplayData()
             * }
             */

            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('Record Not Found..!')</script>");
            }


            SellBLL   s   = new SellBLL();
            DataTable dtt = s.getSellBLL();

            GridView1.DataSource = dtt;
            GridView1.DataBind();
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SellBLL s = new SellBLL();

            Repeater1.DataSource = s.getSellBLL();
            Repeater1.DataBind();
        }