internal ToMVCHmlString in TagBuilder

277 views Asked by At

I am looking to write a few helpers in my own assembly modeled after the helpers in System.web.mvc. My problem is that I cannot use the call to Tagbuilder.ToMvcHtlString since it is internal. So if I return a string it wont be ready for asp.net 4 when it comes.

I dont want to add anything to system.web.mvc as that is a given dll.

1

There are 1 answers

0
Mattias Jakobsson On BEST ANSWER
return MvcHtmlString.Create(tagBuilder.ToString());