protected void ddUserProfiles_SelectedIndexChanged(object sender, EventArgs e) { int userProfileID = Convert.ToInt32(ddUserProfiles.SelectedValue); crud crud = new crud(); List<subscription> subscriptions = crud.getAllSubscriptionsForUserProfile(userProfileID); DataTable table = getFilledSubscriptionTable(subscriptions); grdResults.DataSource = table; grdResults.DataBind(); resultsFor.InnerText = ddUserProfiles.SelectedItem.Text; ddCourseNames.SelectedIndex = -1; cldrDates.SelectedDate = DateTime.Now; }
// initializers protected void Page_Load(object sender,EventArgs e) { NinaSubscriptionsMaster master = this.Master as NinaSubscriptionsMaster; master.setHeaderTitle(settingsHelper.get("title_mijn_gegevens")); userProfile user = master.getLoggedInUserProfile(); if (user == null) { Response.Redirect("~/Pages/Public/bekijkAanbod.aspx"); }; fillPersonalData(user); crud crud = new crud(); lstvChildren.DataSource = crud.getAllChildrenForUserProfile(user.id); lstvChildren.DataBind(); lstvSubscriptions.DataSource = crud.getAllSubscriptionsForUserProfile(user.id); lstvSubscriptions.DataBind(); }