Can I return a string using the @helper syntax in Razor?
Razor helpers return HelperResult objects. You can get the raw HTML by calling ToString(). For more information, see my blog post.
Razor helpers return HelperResult objects. You can get the raw HTML by calling ToString(). For more information, see my blog post.
Using Drew Noakes suggestion, I have come to a workaround that does the trick for now and that can be easily removed once the issue is solved in a newer version of MVC (that is if more stuff isn’t changed that would break it:)) The goal is to be able to use an HtmlHelper inside … Read more