0

I want to split a line into 2 lines.
I built my line like this:

method = "Email " + TitleOwnership.VehicleOwnership + " Title " + Environment.NewLine + "ORI " + TitleOwnership.VehicleOwnership + " Title in 10 days ";

My View like this:

<td>@Html.DisplayFor(modelItem => item.SubmitMethod)</td>

I've also used <br and "Email ME Title \r\nORI ME Title in 10 days "

None of them work. Does anyone know what I'm doing wrong?
Thanks.

4
Contributors
3
Replies
14
Views
2 Years
Discussion Span
Last Post by tobyITguy
0

Kind of wierd codes here. Can you please clearify your codes? We are always here to help but can't help if we don't understand what we are seeing.

0

If your trying to display the content in a cell in a table on two lines. You need to add the 'rowspan' attribute in your cell.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.