protected void Page_Init(object sender, EventArgs e) { var participants = AttendSessionEngine.GetParticipants(CurrentBlock); NoParticipants.Visible = !(participants.Any <ParticipantBlock>()); NoParticipants.DataBind(); SetupPreviewPropertyControl(ParticipantsContentArea, participants); }
protected void Page_Init(object sender, EventArgs e) { Participants = AttendRegistrationEngine.GetParticipants(CurrentPage.ContentLink).ToList(); NoParticipants.Visible = !(Participants.Count <IParticipant>() > 0); Sessions = AttendSessionEngine.GetSessions(CurrentPage.ContentLink).ToList(); PopulateStatusDropDown(); PopulateEMailDropDown(); PopulateSessionDropDown(); DeleteParticipantsCopy.OnClientClick = "return confirm('" + DeleteConfirmation() + "');"; NoParticipants.DataBind(); }