Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | ASP | Q5820 [ previous next ]

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

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"

%>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.