Argentini.Halide.H3Text.SmartNav C# (CSharp) Method

SmartNav() public static method

Returns HTML in a string for a flickr-style button navigation. "classString" controls the name of the surrounding DIV tag, so the style sheet can be customized and assigned to the SmartNav.
public static SmartNav ( string classString, string urlString, int recordCount, int perPage, int currentPage, string elipses ) : String
classString string Name of the surrounding DIV tag so style sheet can customized.
urlString string Base url for navigating pages. Page number is appended to the end of this for links.
recordCount int Number of total records in the database. Used to calculate page count.
perPage int Number of total records listed per page. Used to calculate page count.
currentPage int Current page number.
elipses string Text or HTML to show between button segments (e.g. " ... ").
return String
        public static String SmartNav(string classString, string urlString, int recordCount, int perPage, int currentPage, string elipses)
        {
            return SmartNav(classString, urlString, recordCount, perPage, currentPage, elipses, true, "« Prev", "Next »", 8, true);
        }

Same methods

H3Text::SmartNav ( string classString, string urlString, int recordCount, int perPage, int currentPage, string elipses, bool showPreviousNext, string prevText, string nextText, int buttonCount ) : String
H3Text::SmartNav ( string classString, string urlString, int recordCount, int perPage, int currentPage, string elipses, bool showPreviousNext, string prevText, string nextText, int buttonCount, System.Boolean leftToRight ) : String