private static string NavigationSpan(PaginationLink link) { TagBuilder tagBuilder = new TagBuilder("span"); tagBuilder.MergeAttribute("class", link.HtmlClass + " highContrastDisabled"); tagBuilder.SetInnerText(link.Text); return(tagBuilder.ToString(TagRenderMode.Normal)); }
private static string NavigationTag(this HtmlHelper helper, PaginationLink link, string actionName) { if (link.IsLink) { MvcHtmlString htmlString = helper.ActionLink(link.Text, actionName, new { page = link.Page }, new { @class = link.HtmlClass }); return(htmlString.ToHtmlString()); } else { return(NavigationSpan(link)); } }