예제 #1
0
 void DisplayProducts()
 {
     Clothery_Classes.clsProductCollection Products = new Clothery_Classes.clsProductCollection();
     LstProductList.DataSource     = Products.ProductsList;
     LstProductList.DataValueField = "ProductID";
     LstProductList.DataTextField  = "Name";
     LstProductList.DataBind();
 }
예제 #2
0
    protected void BtnApply_Click(object sender, EventArgs e)
    {
        clsProductCollection Products = new clsProductCollection();

        Products.ReportByType(TxtType.Text);

        LstProductList.DataSource    = Products.ProductsList;
        LstProductList.DataTextField = "Type";
        LstProductList.DataBind();
    }