I\'m using MVC and I\'ve created a HtmlHelper extension function ImageLink. This function uses two TagBuilder objects to build an HTML image link (like <a><img/></a>).
I have code that generates html via TagBuilders How could I test if the right 开发者_高级运维HTML is generated? My TagBuilder is not as simple as just one tag, it also contains other tags. So I have a
I am creating my own helper in MVC. But the custom attributes are not added in the HTML: Helper public static MvcHtmlString MenuItem(this HtmlHelper helper, string linkText, string actionName, strin
Quick question. How would you refactor this Asp.net MVC 2 HtmlHelper? Specifically would it make sense to use the TagBuilder class in this scenario?
what\'s the 开发者_如何学Cdifference in using tag builder and string builder to create a table in a htmlhelper class, or using the HtmlTable?
Closed. This question is opinion-based. It is not currently accepting answers. 开发者_如何学Python