Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _UpdateCount = 0;

            if (UserSecurityClass == PoliticianSecurityClass)
            {
                PodcastEntry.AddCssClasses("hidden");
            }

            if (!IsPostBack)
            {
                var title = PoliticianName + " - Update Intro";
                Page.Title   = title;
                H2.InnerHtml = OfficeAndStatus;
                ShowIntroLink.Attributes["href"] = IntroPageUrl;
                //UpdateIssuesLink.Attributes["href"] = UpdateIssuesPageUrl;
                //ShowPoliticianIssueLink.Attributes["href"] = PoliticianIssuePageUrl;

                // Set temp nocache
                SetNoCacheForState();

                // mark if birthday is needed (politician access only)
                if (UserSecurityClass == PoliticianSecurityClass &&
                    string.IsNullOrWhiteSpace(Politicians.GetDateOfBirthAsString(PoliticianKey)))
                {
                    Master.FindControl("Body").AddCssClasses("need-dob");
                }
            }
        }