-
ASP and line break
How do I make a line break between these strings in ASP?
Code:
<%
...
var strBody = "Members:"
var strBody1 = "Name: " + navn
var strBody2 = "Company: " + firma
mailer.Body = strBody + strBody1 + strBody2
...
%>
I want the result to be displayed like this:
Members:
Name: ???
Company: ???
instead of
Members: Name: ??? Company:???
-
-
Sorry, I don't understand. Is it a method?
-
No, it is a variable holding the value for Carriage Return/Line Feed. I notice that you are using a "var" keyword, so you are not writting a VBScript ASP. I assume it is JScript. So I will further assume that JScript is like JavaScript, in which case...
Code:
var foo = "bar\nblah";
The control sequence \n would be carriage return/line feed.
-
Just what I needed, thanks!