Esempio n. 1
0
        private static void AddJurisdictionsMenu(Control ul)
        {
            var stateCode = SecurePage.FindStateCode();

            AddMenuItem(ul, "Jurisdictions",
                        SecureAdminPage.GetUpdateJurisdictionsPageUrl(stateCode,
                                                                      SecurePage.FindCountyCode(), SecurePage.FindLocalKey()));
        }
 private static Control MakeUpdateJurisdictionsLink(DataRow row)
 {
     return(new HtmlAnchor
     {
         HRef = SecureAdminPage.GetUpdateJurisdictionsPageUrl(row.StateCode(),
                                                              row.CountyCode()),
         Target = "_blank",
         InnerText = row.County()
     });
 }
Esempio n. 3
0
        private static void AddJurisdictionsMenu(Control ul)
        {
            var stateCode = SecurePage.GetViewStateStateCode();

            if (!StateCache.IsValidStateCode(stateCode))
            {
                stateCode = string.Empty;
            }
            AddMenuItem(ul, "Jurisdictions",
                        SecureAdminPage.GetUpdateJurisdictionsPageUrl(stateCode,
                                                                      SecurePage.GetViewStateCountyCode(), SecurePage.GetViewStateLocalCode()));
        }
Esempio n. 4
0
        private static Control MakeUpdateJurisdictionsLink(DataRow row)
        {
            var localKey = row.LocalKey();

            return(new HtmlAnchor
            {
                HRef = SecureAdminPage.GetUpdateJurisdictionsPageUrl(row.StateCode(),
                                                                     row.CountyCode(), localKey),
                Target = "_blank",
                InnerHtml = IsNullOrWhiteSpace(localKey)
        ? "<b>" + row.County() + "</b>"
        : row.LocalDistrict()
            });
        }