protected void SelectCategory_CategorySelected(object sender, CommandEventArgs e) { //Store the other selection(s) too. SelectLocation.StoreLocations(); var dDate = Convert.ToDateTime(ViewState[ModuleId + "WeekOf"]); BindPage(dDate); }
protected void lnkToday_Click(object sender, EventArgs e) { var dDate = DateTime.Now.Date; SelectedDate = dDate; dpGoToDate.SelectedDate = dDate; SelectCategory.StoreCategories(); SelectLocation.StoreLocations(); BindPage(dDate); }
protected void lnkPrev_Click(object sender, EventArgs e) { var dDate = Convert.ToDateTime(Convert.ToDateTime(ViewState[ModuleId + "WeekOf"]).AddDays(-7)); SelectedDate = dDate.Date; dpGoToDate.SelectedDate = dDate.Date; SelectCategory.StoreCategories(); SelectLocation.StoreLocations(); BindPage(dDate); }
protected void EventCalendar_VisibleMonthChanged(object sender, MonthChangedEventArgs e) { //set selected date to first of month SelectedDate = e.NewDate; dpGoToDate.SelectedDate = e.NewDate.Date; if (!Settings.Monthcellnoevents) { EventCalendar.SelectedDate = e.NewDate; } SelectCategory.StoreCategories(); SelectLocation.StoreLocations(); //bind datagrid BindDataGrid(); }
protected void lnkToday_Click(object sender, EventArgs e) { //set grid uneditable SelectedDate = DateTime.Now.Date; EventCalendar.VisibleDate = SelectedDate; dpGoToDate.SelectedDate = SelectedDate.Date; if (!Settings.Monthcellnoevents) { EventCalendar.SelectedDate = SelectedDate; } SelectCategory.StoreCategories(); SelectLocation.StoreLocations(); //fill grid with current selection's data BindDataGrid(); }
protected void SelectCategory_CategorySelected(object sender, CommandEventArgs e) { //Store the other selection(s) too. SelectLocation.StoreLocations(); BindDataGrid(); }