How would I join two strings in Razor syntax?
If I had: @Model.address and @Model.city and I wanted the out put to be address city
@Model.address
@Model.city
address city
You can use:
@foreach (var item in Model) { ... @Html.DisplayFor(modelItem => item.address + " " + item.city) ...