/// <summary> /// Populates the run page details if a valid eventID is part of the query string /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// Jason Vance - 11/19/2012 protected void Page_Load(object sender, EventArgs e) { try { // Clear out the result labels if they need to be lblError.Text = ""; lblFormSuccess.Text = ""; // Get the event id String eventId = Request.QueryString["eventID"]; BusinessTier bt = new BusinessTier(); DataSet ds = null; // If the event id is good, then fill in the page information if (eventId != null) { ds = bt.getRunDetails(eventId); populateRunDetails(ds); ds = bt.getRunParticipants(eventId); populatePartcipantsBox(ds); // Populate our on-going list of runners populateRunnersSoFar(); } else { Response.Redirect("Oops.aspx"); } // Keep the postbask url of the add runner button consistent, needed because buttons to edit runners change the url btnAddAnotherRunner.PostBackUrl = "RunRegistration.aspx?eventID=" + Request.QueryString["eventID"]; } catch (Exception ex) { ErrorLog.logError(ex); Response.Redirect("Oops.aspx"); } }