예제 #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
 }
예제 #2
0
 void DisplayOrders()
 {
     ClassLibrary.clsOrderCollection Orders = new ClassLibrary.clsOrderCollection();
     lstOrderList.DataSource     = Orders.OrderList;
     lstOrderList.DataValueField = "OrderNumber";
     lstOrderList.DataTextField  = "OrderPrice";
     lstOrderList.DataBind();
 }
예제 #3
0
 void DisplayOrders()
 {
     ClassLibrary.clsOrderCollection Orders = new ClassLibrary.clsOrderCollection();
     ListBoxOrder.DataSource = Orders.OrderList;
     //set name of primary key
     ListBoxOrder.DataValueField = "OrderNo";
     //set data field to display
     ListBoxOrder.DataTextField = "ProductName";
     //blind data to list
     ListBoxOrder.DataBind();
 }
예제 #4
0
 void DisplayOrders()
 {
     //Create an instance of the Shipping Address Collection
     ClassLibrary.clsOrderCollection Addresses = new ClassLibrary.clsOrderCollection();
     //Set the data source to the list of Shipping Address in the collection
     lstOrders.DataSource = Addresses.OrderList;
     //Set the name of the primary key
     lstOrders.DataValueField = "OrderId";
     //Set the data field to display
     lstOrders.DataTextField = "ShippingAddress";
     //Bind the data to the list
     lstOrders.DataBind();
 }