Exemple #1
0
            protected override void InitializeItem(TemplateControl owner,
                                                   bool addMonitorClasses = true, FeedbackContainerControl feedback = null)
            {
                var page = owner as SecurePage;

                // ReSharper disable once BaseMethodCallWithDefaultParameter
                base.InitializeItem(page, addMonitorClasses);

                _Heading =
                    page.Master.FindMainContentControl("Heading" + Column) as
                    HtmlGenericControl;
                IconBox =
                    page.Master.FindMainContentControl("IconBox" + Column) as HtmlAnchor;

                if (_Heading != null)
                {
                    _Heading.InnerHtml = Description;
                }

                if (IconBox != null)
                {
                    IconBox.Attributes.Add("title", IconToolTip);
                    IconBox.AddCssClasses("tiptip");
                }
            }
Exemple #2
0
        protected static HtmlAnchor CreateCompareTheCandidatesAnchorTable(string electionKey,
                                                                          string officeKey, string issueKey = "ALLBio")
        {
            var a = new HtmlAnchor
            {
                HRef =
                    UrlManager.GetIssuePageUri(Offices.GetStateCodeFromKey(officeKey),
                                               electionKey, officeKey, issueKey)
                    .ToString(),
                Title     = "Compare candidates' bios and views and positions on the issues",
                InnerHtml = "Compare the candidates"
            };

            a.AddCssClasses("compareCandidates");
            return(a);
        }