Exemple #1
0
    private void LoadProductCategory()
    {
        try
        {
            DataTable dt    = new DataTable();
            DAProduct oData = new DAProduct();

            dt.Load(oData.USP_ProductCat_Client_GetAll());

            rptProductCate.DataSource = dt;
            rptProductCate.DataBind();
        }
        catch
        {
        }
    }
Exemple #2
0
    // Hiển thị menu
    private void LoadMenu()
    {
        try
        {
            DAProduct oData = new DAProduct();
            dt.Load(oData.USP_ProductCat_Client_GetAll());

            // Lay menu cha
            //DataTable dtParent = dt.Select("ParentID = 0").CopyToDataTable();
            DataView dv = new DataView(dt, "ParentID = 0", "Pos", DataViewRowState.CurrentRows);
            rptProCat.DataSource = dv;
            rptProCat.DataBind();
        }
        catch
        {
        }
    }