private void BindataToRpt()
    {
        ProductCategory obj = new ProductCategory();

        rptProductCat.DataSource = obj.GetAllProductCat();
        rptProductCat.DataBind();
    }
Пример #2
0
    private void BindataToRptMenuLeft()
    {
        ProductCategory pc = new ProductCategory();

        rptMenuLeft.DataSource = pc.GetAllProductCat();
        rptMenuLeft.DataBind();
    }
Пример #3
0
    private void BindataToDdl()
    {
        ProductCategory obj = new ProductCategory();
        DataTable       dtb = new DataTable();

        dtb = obj.GetAllProductCat();
        ddlProducts.DataSource     = dtb;
        ddlProducts.DataValueField = "ProductCategoryID";
        ddlProducts.DataTextField  = "ProductCategoryName";
        ddlProducts.DataBind();
    }