Exemplo n.º 1
0
    private void BindTopProducts()
    {
        Products p = new Products();

        p.GetProducts((int)Enumerations.ProductCat.Top);

        ListView_Products.DataSource = p;
        ListView_Products.DataBind();
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Products p = new Products();
            p.GetProducts((int)Enumerations.ProductCat.Kids);

            ListView_Products.DataSource = p;
            ListView_Products.DataBind();
        }
    }
Exemplo n.º 3
0
    private void BindListView()
    {
        Products p = new Products();

        p.GetProducts((int)Enumerations.ProductCat.Group9);

        ListView_Products.DataSource = p;
        ListView_Products.DataBind();


        repOrderedList.DataSource = p;
        repOrderedList.DataBind();
    }
Exemplo n.º 4
0
    private void BindListView()
    {
        Products p = new Products();

        p.GetProducts(null);

        ListView_Products.DataSource = p;
        ListView_Products.DataBind();


        repOrderedList.DataSource = p;
        repOrderedList.DataBind();
    }