Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the character for new line in asp

what is the character for a new line in asp

like image 797
Mayur Avatar asked Dec 22 '22 19:12

Mayur


2 Answers

For future-archeologists, the correct answer in javascript/jscript is \n and it's vbCrLf in vbscript.

like image 23
David Rowley Avatar answered Jan 14 '23 07:01

David Rowley


If you want a line break between HTML elements or text, you need to use a <BR /> tag.

If you want to want the HTML source to have a line break, you need to output one - in classic ASP, using vbscript that would be vbCrLf. In .NET you should use Environment.NewLine.

like image 68
Oded Avatar answered Jan 14 '23 09:01

Oded