Created
September 13, 2013 22:03
-
-
Save DaveHogan/6556693 to your computer and use it in GitHub Desktop.
MVC Html helper class that will render an table row
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class HtmlHelperExtensions | |
| { | |
| public static MvcHtmlString EmptyRow(this HtmlHelper helper, string emptyTextMessage, int rowCount) | |
| { | |
| return new MvcHtmlString(string.Format("<tr class=\"emptyRow\"><td colspan=\"{0}\">{1}</td></tr>", rowCount, emptyTextMessage)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment