Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 2nd, 2003, 08:44 PM
Authorized User
Join Date: Sep 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to conundrum Send a message via AIM to conundrum Send a message via Yahoo to conundrum
Default Want to detect line breaks

I want to detect a line break and replace it with </p><p> so that i can format a users input in a textarea tag. Any help would be appreicated.

Old October 3rd, 2003, 04:05 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

You can either:
1. use the Replace command to change vbCrLf to "</p><p>" or just "<br>", or
2. put the content inside <pre></pre> tags, then the line-breaks will display as intended.


Similar Threads
Thread Thread Starter Forum Replies Last Post
line breaks mister_mister XSLT 14 March 17th, 2008 12:55 PM
Line Breaks in Access? chroniclemaster1 Access 0 February 13th, 2008 04:55 AM
How to do line breaks! Apocolypse2005 Beginning VB 6 2 December 11th, 2006 03:20 PM
Line breaks question gkirk Beginning PHP 2 February 27th, 2005 10:40 AM
problems with line breaks sanchezal XSLT 7 July 30th, 2003 03:09 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.