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?

Member Avatar

What technology is this?

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.