コード例 #1
0
        private static void AddJurisdictionsMenu(Control ul)
        {
            var stateCode = SecurePage.FindStateCode();

            AddMenuItem(ul, "Jurisdictions",
                        SecureAdminPage.GetUpdateJurisdictionsPageUrl(stateCode,
                                                                      SecurePage.FindCountyCode(), SecurePage.FindLocalKey()));
        }
コード例 #2
0
 private static Control MakeUpdateJurisdictionsLink(DataRow row)
 {
     return(new HtmlAnchor
     {
         HRef = SecureAdminPage.GetUpdateJurisdictionsPageUrl(row.StateCode(),
                                                              row.CountyCode()),
         Target = "_blank",
         InnerText = row.County()
     });
 }
コード例 #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()));
        }
コード例 #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()
            });
        }