public static string GenerateHtmlEndRow(Layoutt cblLayout) { switch (cblLayout) { case Layoutt.Table: return("</td></tr>"); case Layoutt.Flow: return("<br>"); default: return(""); } }
public static string GenerateHtmlBeginRow(Layoutt cblLayout) { switch (cblLayout) { case Layoutt.Table: return("<tr><td>"); case Layoutt.Flow: return(""); default: return(""); } }
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); }