Ejemplo 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.GetUpdateShowPageUrl(GetShowId()), "Update Show", IsActive: true),
            });

            labelPageTitle.Text       = "Update the Show";
            labelPageDescription.Text = "Use the form below to update the show.";

            showForm.GetSubmitButton().Click += new EventHandler(btnUpdateShow_Click);
            showForm.GetCancelButton().Click += new EventHandler(btnCancel_Click);
        }