protected void btnQueryDate_Click(object sender, EventArgs e) { PagedDataSource pdsShows = new PagedDataSource(); pdsShows.DataSource = ShowManager.GetShowsBySql(Convert.ToInt32(Request.QueryString["movieId"]), Calendar1.SelectedDate.ToShortDateString()); dlShows.DataSource = pdsShows; dlShows.DataBind(); }
private void DataBind() { PagedDataSource pdsShows = new PagedDataSource(); pdsShows.DataSource = ShowManager.GetShowsBySql(Convert.ToInt32(Request.QueryString["movieId"]), DateTime.Now.ToShortDateString()); dlShows.DataSource = pdsShows; dlShows.DataBind(); }
private void DataBind(int movieId) { PagedDataSource pdsShows = new PagedDataSource(); pdsShows.DataSource = ShowManager.GetShowsBySql(movieId, DateTime.Now.ToShortDateString()); dlShows.DataSource = pdsShows; dlShows.DataBind(); }