Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 August 25th, 2004, 10:51 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Handle Resumes' Format

Hi All,

I have a ASP form with a "text area" box so users could paste their resume into. When they do a submit, their data will be inserted into a SQL database. If you r familiar with resumes; they have different sections(ie. Objective, Education, Experience, etc.) separated either by single spaces or double spaces.

The question i have is. When users paste their resumes into this "text area" box, how would I handle the single spaces or double spaces, so that when I retrieve the resume, they will be in the right format as when they were posted? In other words, I want to retrieve a resume from the database and show it on a web page. When I see this resume on the page, i want to be able to see the single spaces or double spaces like when the users have pasted it.

Thank you.

Leon



 
Old September 4th, 2004, 02:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Leon,

I think I am too late on this(was travelling lastweek). Though by now you would have solved that yourself, still let me post on how to solve that.

Yes, when given hard spaces using keyboard, HTML ignores multiple spaces and shows off just a single space. We can force it to consider all those spaces by replacing " " with " "
Code:
Replace(strTextAreaValue," "," ")
Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
date format differs, need to force format somehow patricolsson ASP.NET 2.0 Basics 1 December 3rd, 2009 12:53 AM
Convert British format date to American format? fyr PHP How-To 0 December 19th, 2007 03:17 PM
Convert Rich Text Format to Ordinary Format in ASP Andraw Classic ASP Basics 1 August 31st, 2007 10:05 AM
date format differs, need to force format somehow patricolsson HTML Code Clinic 2 January 12th, 2006 05:55 AM
How to handle...? chawnu Pro PHP 1 December 8th, 2005 05:14 AM





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