removing all white spaces from scrolling text box

Discussion in 'C#' started by t7584, Nov 17, 2006.

  1. #1
    removing all white spaces from scrolling text box
    My guestbook doesn't work correctly when I copy text from text processor into scrolling text box because of special characters that text processor leave. How do I remove all white spaces from scrolling text box and place new ones in there places.
     
    t7584, Nov 17, 2006 IP
  2. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #2
    what does your question has to do with ASP? maybe you need JavaScript?
     
    ludwig, Nov 18, 2006 IP
  3. t7584

    t7584 Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    asp (vbs) or JavaScript
     
    t7584, Nov 19, 2006 IP
  4. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #4
    you can always use this
    strText=request("text")
    strText = replace(strText, vbCrLfvbCrLf, vbCrLf)

    it replaces 2 enters with one, is that what you needed?
     
    ludwig, Nov 19, 2006 IP
  5. pushkar

    pushkar Peon

    Messages:
    125
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    U can use Trim Function to remove white space.Like
    May be helpful.
     
    pushkar, Nov 29, 2006 IP