Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            RedirectUtil.RedirectUnauthenticatedUserToLoginPage();
            RedirectUtil.RedirectNonAdminUserToHomePage();

            BreadCrumbUtil.DataBind(Page, new List <BreadCrumb>()
            {
                new BreadCrumb(NavUtil.GetHomePageUrl(), "Home"),
                new BreadCrumb(NavUtil.GetShowsPageUrl(), "Shows"),
                new BreadCrumb(NavUtil.GetShowPageUrl(GetShowId()), "Show"),
                new BreadCrumb(NavUtil.GetContestPageUrl(GetShowId(), GetContestId()), "Contest"),
                new BreadCrumb(NavUtil.GetContestantPageUrl(GetShowId(), GetContestId(), GetContestantId()), "Contestant"),
                new BreadCrumb(NavUtil.GetAddPerformerPageUrl(GetShowId(), GetContestId(), GetContestantId()), "Add Performer", IsActive: true),
            });

            labelPageTitle.Text       = "Add a Performer";
            labelPageDescription.Text = "Use the form below to create a new performer.";

            performerForm.GetSubmitButton().Click += new EventHandler(btnAddPerformer_Click);
            performerForm.GetCancelButton().Click += new EventHandler(btnCancel_Click);
        }