//查詢日期 protected void TimeSearch_Click(object sender, EventArgs e) { String starttime = StartDate.Text; String endtime = EndDate.Text; Record_GridView.DataSource = new Search().search_record(starttime, endtime); Record_GridView.DataBind(); }
//更新RecordGridView資料 protected void UpdateGridview() { StartDate.Text = DateTime.Today.ToString("yyyy/MM/01"); Record_GridView.DataSource = new Search().search_record(StartDate.Text); Record_GridView.DataBind(); }