Ejemplo n.º 1
0
    private void bindOrder()
    {
        DataTable dtcustomer = objdataaccess.GetDatatable("Select * from tblcustomer where customerID=" + Session["CustomerID"].ToString());

        if (dtcustomer.Rows.Count > 0)
        {
            label_UserName.Text = dtcustomer.Rows[0]["UserName"].ToString();
        }

        dt = objOrder.GetOrderByCustomerID(Convert.ToInt32(Session["customerID"].ToString()));
        if (dt.Rows.Count > 0)
        {
            rep_orderdetails.DataSource = dt;
            rep_orderdetails.DataBind();
        }
        else
        {
            label_No_record_Found.Text = "Sorry You Have No Order ";
        }
    }