devxlogo

New Line Character in ASP

New Line Character in ASP

Question:
How do I define a new line character in ASP?

Answer:
In ASP (VBScript), use the constant vbCrLF to add line breaks in your string variables:

strString = "Hello" & vbCrLF & "There"

The constant will do the same thing in C:

strString = "Hello 
 There"

devx-admin

Share the Post: