Exemple #1
0
        public static string GenerateHtmlEndRow(Layoutt cblLayout)
        {
            switch (cblLayout)
            {
            case Layoutt.Table:
                return("</td></tr>");

            case Layoutt.Flow:
                return("<br>");

            default:
                return("");
            }
        }
Exemple #2
0
        public static string GenerateHtmlBeginRow(Layoutt cblLayout)
        {
            switch (cblLayout)
            {
            case Layoutt.Table:
                return("<tr><td>");

            case Layoutt.Flow:
                return("");

            default:
                return("");
            }
        }
Exemple #3
0
        public static TagBuilder GenerateHtmlMarkupOuterTag(Layoutt cblLayout,
                                                            IDictionary <string, object> htmlAttributes)
        {
            string htmlTag = string.Empty;

            switch (cblLayout)
            {
            case Layoutt.Flow:
                htmlTag = "div";
                break;

            case Layoutt.Table:
                htmlTag = "table";
                break;
            }

            var tagBuilder = new TagBuilder(htmlTag);

            tagBuilder.MergeAttributes(htmlAttributes);
            return(tagBuilder);
        }