asp.net - Carriage returns in html table -
I am having trouble displaying the returns in the html table, giving it as a line.
I get data from a SQL 2012 database, but it is weird because it shows returns when I edit data in a text field.
Any thoughts?
Public Action Details Details (id = 0) {cursorModelWorkoutModel = DB. Workoutmodals.find (id); If (workoutmodel == zero) {return HttpNotFound (); } See Return (workoutmodel.WorkoutDetails.Replace (System.Environment.NewLine, "");); } The text will show the returns in the fields but you will have to purse the return on the break in HTML.
As:
My text with a \ r \ n line break. is created:
a & lt; Br / & gt; My text with line breaks
Comments
Post a Comment