Currently it’s returning the HTML as a string. Is there an easy way to get this to properly output HTML?
@Html.LabelFor(m => m.DisplayName,
Html.Raw(Html.Partial("_Tooltip", new Tooltip {
Title = Model.DisplayName,
Description = "This is my test description"}
).ToString())
.ToString())
I was able to solve this by creating an extension method for it, following this example: http://weblogs.asp.net/imranbaloch/archive/2010/07/03/asp-net-mvc-labelfor-helper-with-htmlattributes.aspx
With the exception that I updated this:
To this: