/// <summary> /// This method executes on load and populates the Golf Details (using helper methods) and checks for errors /// 11/18/12 Michael Larsen /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// Michael Larsen - 11/18/12 /// Tested by Michael Larsen 11/27/12 protected void Page_Load(object sender, EventArgs e) { try { if (Request["eventID"] == null) { Response.Redirect("Events.aspx",false); } else { String eventID = Request["eventID"].ToString(); BusinessTier bt = new BusinessTier(); DataSet ds = bt.getGolfDetails(eventID); DataSet ds2 = bt.getMaxGolfParticipants(eventID); DataSet ds3 = bt.getGolfParticipants(eventID); int numErrors = ds.Tables[0].Rows.Count + ds2.Tables[0].Rows.Count + ds3.Tables[0].Rows.Count; if (numErrors > 0) { Response.Redirect("Oops.aspx",false); } else { populateGolfDetails(ds); populateParticipantInfo(ds2, ds3); } } } catch (Exception ex) { ErrorLog.logError(ex); Response.Redirect("Oops.aspx",false); } }