Beispiel #1
0
 void DisplayOrders()
 {
     ClassLibrary.clsOrderCollection Orders = new ClassLibrary.clsOrderCollection();
     LstOrders.DataSource     = Orders.OrderList;
     LstOrders.DataValueField = "OrderID";
     LstOrders.DataTextField  = "GameTitle"; //display game titles on viewpage form
     LstOrders.DataBind();                   //bind ID and titles
 }
Beispiel #2
0
    protected void btnApply_Click(object sender, EventArgs e)
    {
        clsOrderCollection Orders = new clsOrderCollection();

        Orders.ReportByGameTitle(txbGameTitle.Text); //sort by game title
        LstOrders.DataSource = Orders.OrderList;

        LstOrders.DataValueField = "OrderID";
        LstOrders.DataTextField  = "GameTitle"; //filter by game title with stored name
        LstOrders.DataBind();
    }
Beispiel #3
0
    protected void btnClear_Click(object sender, EventArgs e)
    {
        clsOrderCollection Orders = new clsOrderCollection();

        Orders.ReportByGameTitle("");

        txbGameTitle.Text    = "";
        LstOrders.DataSource = Orders.OrderList;

        LstOrders.DataValueField = "OrderID";
        LstOrders.DataTextField  = "GameTitle"; //sort by unfiltered game titles
        LstOrders.DataBind();
    }