protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { tbQuickLocation.Text = string.Empty; OverviewSortDirection = SortDirection.Descending; using (var dataAccess = new AvailabilityDataAccess(null)) { lbFleet.Items.AddRange(dataAccess.GetFleetTypesList(ModuleType.Availability).ToArray()); lblLastUpdate.Text = LastUpdatedFromFleetNow.GetLastUpdatedDateTime(dataAccess); } using (var dataAccess = new ReservationDataAccess(null)) { lblReservationUpdate.Text = dataAccess.GetLastGwdRequest(); } } var eventTarget = Request["__EVENTTARGET"]; if (eventTarget == null) { return; } if (eventTarget == upnlLocationSummary.ClientID) { CheckLocationCode(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { using (var dataAccess = new ReservationDataAccess(null)) { lblLastUpdate.Text = dataAccess.GetLastGwdRequest(); } } }
private void RefreshGrid() { List <ReservationData> data; var mergedParameters = ucParameters.GetParameterDictionary(); using (var dataAccess = new ReservationDataAccess(mergedParameters)) { lblLastUpdate.Text = dataAccess.GetLastGwdRequest(); data = dataAccess.GetReservations(); } ucReservationsGrid.GridData = data; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { using (var dataAccess = new AvailabilityDataAccess(null)) { lblLastUpdate.Text = LastUpdatedFromFleetNow.GetLastUpdatedDateTime(dataAccess); } using (var dataAccess = new ReservationDataAccess(null)) { lblReservationUpdate.Text = dataAccess.GetLastGwdRequest(); } } }