Пример #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.GetAddContestPageUrl(GetShowId()), "Add Contest", IsActive: true),
            });

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

            contestForm.GetSubmitButton().Click += new EventHandler(btnAddContest_Click);
            contestForm.GetCancelButton().Click += new EventHandler(btnCancel_Click);
        }