I’m using asp.net MVC 4 with VB.Net and Razor.
In my model, I have:
Public Class MPEmployee
Public Property ID() As Integer
<DisplayName("Staff<br />Name")>
…
..
.
Is there any way of keeping the line break when I display the label for the column in my views:
<th>
@Html.DisplayNameFor(Function(model) model.StaffName)
</th>
Thanks for any help,
Mark
Let view and html deal with breaking text into lines. If you give that
thsmall enough width, it will automatically placeNameon second line…