Example #1
0
    public void BindProducts()
    {
        int        categoryCode = Convert.ToInt32(ddlCategory.SelectedValue);
        DALProduct obj          = new DALProduct();
        DataSet    ds           = obj.Product_GetList(categoryCode);

        rptProducts.DataSource = ds.Tables[0];
        rptProducts.DataBind();
    }