コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _ElectionDescription = PageCache.Elections.GetElectionDesc(_ElectionKey);
            var table = Referendums.GetData(_ElectionKey, _ReferendumKey);

            if (table.Count == 1)
            {
                _Referendum = table[0];
            }

            var spacedOutTitle = _Referendum.ReferendumTitle.ReplaceNewLinesWithSpaces();

            Title           = Format(TitleTag, spacedOutTitle, _ElectionDescription, PublicMasterPage.SiteName);
            MetaDescription = Format(MetaDescriptionTag, spacedOutTitle, _ElectionDescription);

            if (_Referendum != null)
            {
                CreateReport();
            }
        }