Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ((Button)((Site)Master).BtnOldLoad).BackColor = System.Drawing.Color.White;
         ((Button)((Site)Master).BtnOldLoad).ForeColor = System.Drawing.Color.Black;
         GridViewDayLoads.DataSource = LoadClass.GetLoadsByDate(DateTime.Now);
         GridViewDayLoads.DataBind();
     }
 }
Ejemplo n.º 2
0
 protected void BtnGetInventory_Click(object sender, EventArgs e)
 {
     GridViewDayLoads.DataSource = LoadClass.GetLoadsByDate(Convert.ToDateTime(txtDate.Text));
     GridViewDayLoads.DataBind();
 }