private void BindProductCatalogue()
        {
            BllProducts myProd = new BllProducts();
            DataSet     ds;

            ds = myProd.GetAllProducts();
            gvProduct.DataSource = ds;
            gvProduct.DataBind();
        }
Example #2
0
        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            BllProducts p = new BllProducts();

            Panel1.Visible    = true;
            GridView1.Visible = true;
            lblProdID.Text    = GridView1.SelectedRow.Cells[0].Text;
            lblDesc.Text      = GridView1.SelectedRow.Cells[1].Text;
            lblQty.Text       = GridView1.SelectedRow.Cells[2].Text;
            lblPrice.Text     = GridView1.SelectedRow.Cells[3].Text;
            Image2.ImageUrl   = "http://localhost:60522/supplier-images/" + p.GetProductImage(Convert.ToInt32(lblProdID.Text));
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Page.IsPostBack == false)
     {
         BllProducts p = new BllProducts();
         BindCustomerOrder();
         lbl_num.Text = gvPurchase.Rows.Count.ToString() + " " + "PUCRHASE ORDERS ";
         // lbl_amt.Text = "$" + " " +CalculateTotal().ToString() + " " + "on hand";
         lbl_amt.Text     = "Processing, New, Delivered";
         lbl_company.Text = "BoxWear";
     }
 }