public void Initialize_Page() { FromDateTxt.Text = DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day; ToDateTxt.Text = DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day; _SubAccountList = db.SubAccount.ToList(); _CarList = db.Cars.ToList(); TransportGrd.DataSource = null; TransportGrd.DataBind(); }
protected void SaerchBtn_Click(object sender, EventArgs e) { TransportGrd.DataSource = TransportCommanDateSearch(FromDateTxt.Text, ToDateTxt.Text); TransportGrd.DataBind(); }