fr3dr1k8009
fr3dr1k8009

Reputation: 251

Building strings in ASP.NET MVC Helpers

What is the best approach when building strings in html Helpers? Are Stringbuilders good enough when attached to MvcHtmlString.Create(stringbuilder)? Is there another approach which is better?

Upvotes: 0

Views: 53

Answers (1)

DanielB
DanielB

Reputation: 20240

StringBuilder is fine but you could also use System.Web.Mvc.TagBuilder when building HTML content in your helper.

Upvotes: 2

Related Questions