1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| protected Festival CurrentFestival;
protected override void OnInit(EventArgs e)
{
if (!FestTown.HasCurrentfestival(this.DateOfAction))
throw new NotImplementedException();
//get the current festival and its participants
CurrentFestival = Festivals.GetCurrentfestival(this.DateOfAction);
//Assign the Filter to the current festival
Filter.FestivalId = CurrentFestival.ID;
CurrentFestival.Participants = ServiceFestTown.GetParticipants(Filter);
base.OnInit(e);
}
protected void Page_Load(object sender, EventArgs e)
{
}
protected override void OnPreRender(EventArgs e)
{
C_Rep_Participants.DataBind();
base.OnPreRender(e);
} |
Partager