Text boxes and spaces !

Results 1 to 2 of 2

Thread: Text boxes and spaces !

  1. #1
    Join Date
    Dec 1969

    Default Text boxes and spaces !

    When I capture a text box, including spaces etc, it displays ok in the TEXTBOX, but when I put it on the web page (loading it from a variable) all the spaces and returns dissappear ! So all my paragraphs merge into one.<BR>how can I get my pagageaphs etc to remain ? (without using the &#060;PRE&#062;tag which is ugly !)<BR><BR>Thanks<BR>Rich

  2. #2
    Join Date
    Dec 1969

    Default RE: Text boxes and spaces !

    When you store it into a variable, or database, or whatever, replace all of the spaces with &nbsp; and all of the carraige returns with the BR tag. For example:<BR><BR>Dim strTextBox<BR>strTextBox = Replace(Request("TxtAreaField")," ", "&nbsp;")<BR><BR>Happy Programming!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts