protected override void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { // Default Dates StartDateField.Value = DateTime.Today.Subtract(TimeSpan.FromDays(31)).ToShortDateString(); EndDateField.Value = DateTime.Today.ToShortDateString(); FollowUpUtil.PopulateSurveyDropDown(ddlSurveyType); } }
protected override void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int ptId = -1; if (Request.QueryString["usePtInSession"] != null && Request.QueryString["usePtInSession"].Equals("true")) { SessionHandler sh = new SessionHandler(Session); ptId = sh.GetPatientId(); } else if (Request.QueryString["ptId"] != null && Request.QueryString["ptId"].Length > 0) { ptId = int.Parse(Request.QueryString["ptId"]); // Place patient in session PatientController ptController = new PatientController(); ptController.PutPatientInSession(Page, ptId); } FollowUpUtil.PopulateSurveyDropDown(SurveyDD); LoadPatientData(ptId); } }