예제 #1
0
 // Display orders by customer
 protected void byCustomerGo_Click(object sender, EventArgs e)
 {
     try
     {
         List <OrderInfo> orders = CommerceLibAccess.GetOrdersByCustomer(userDropDown.SelectedValue);
         grid.DataSource = orders;
         if (orders.Count == 0)
         {
             errorLabel.Text =
                 "Selected customer has made no orders.";
         }
         grid.DataBind();
     }
     catch
     {
         errorLabel.Text = "Couldn't get the requested orders!";
     }
 }
예제 #2
0
 // Display orders by customer
 protected void byCustomerGo_Click(object sender, EventArgs e)
 {
     try
     {
         List <CommerceLibOrderInfo> orders =
             CommerceLibAccess.GetOrdersByCustomer(
                 userDropDown.SelectedValue);
         grid.DataSource = orders;
         if (orders.Count == 0)
         {
             errorLabel.Text =
                 "Избранияте клиент не е направил поръчки.";
         }
         grid.DataBind();
     }
     catch
     {
         errorLabel.Text = "Поисканите поръчки не бяха намерени!";
     }
 }