예제 #1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     if (Month.SelectedValue != ("בחר חודש") && Year.SelectedValue != ("בחר שנה"))
     {
         DataSet ds = ol.getByMonthAndYear(Month.SelectedValue, Year.SelectedValue);
         GridView1.DataSource = ds;
         GridView1.DataBind();
         if (ds.Tables[0].Rows.Count > 0)
         {
             Label1.Text = "";
         }
         else
         {
             Label1.Text = "אין הזמנות מתאריכים אלו";
         }
     }
     else
     {
         GridView1.DataSource = ol.showAllOrders();
         GridView1.DataBind();
     }
 }