Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 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));
     }
 }