Avez-vous essayé avec Environment.NewLine?
<%= Html.Encode(string.Join(Environment.NewLine, item.company1.companies.Select(x => x.company_name).ToArray())) %>
ou "\ r \ n"
<%= Html.Encode(string.Join("\r\n", item.company1.companies.Select(x => x.company_name).ToArray())) %>
EDIT POUR AJOUTER
Si les entreprises sont séparées par un espace, l'essayer de rejoindre le tableau par un espace
<%= Html.Encode(string.Join(" ", item.company1.companies.Select(x => x.company_name).ToArray())) %>
MODIFIER POUR AJOUTER 2
Devenir membre d'une rupture de ligne html
<%= Html.Encode(string.Join("<br/>", item.company1.companies.Select(x => x.company_name).ToArray())) %>
Cela montre juste comme un espace. – RememberME
Peut-être item.company1.companies est vide –
Non. Je vois la liste des entreprises. Ils sont juste séparés par un espace. – RememberME