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() }); }
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())); }
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() }); }