Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q5820 How do I insert a hard break into the HTML/text my ASP produces?

You are here: irt.org | FAQ | ASP | Q5820 [ previous next ]

The VBScript expression vbCrLf can be appended to text strings to add a carriage return (Cr) and line feed (Lf) or ASCII character 13 and 10, respectively.

<%

' <br> below breaks the line in
' the displayed HTML, vbCRLf in the source code

response.write "This text is on line 1<br>" & vbCrLf
response.write "This text is on line 2"

%>

©2018 Martin Webb