Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    austin, Texas, USA
    Posts
    1,029
    Thanks
    0
    Thanked 0 Times in 0 Posts

    WordWrap in ASP - solved!! (ASP)

    I have wanted to get an ASP page to display such that a large text string wraps rather than pushing out to the right. After much work and neural processing, I developed a function that does just that! It's less than 20 lines long and can be used as an include file for easy invokage.

    If ya'll are interested, I will gladly post it up for view/use/criticism. Frankly, I'm kind of please with myself and want to brag <img src=/S/grin.gif border=0 alt=grin width=15 height=15> -- and people may find it useful. OTOH, I may have missed some really simple solution but I did look high and low first.

  2. #2
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: WordWrap in ASP - solved!! (ASP)

    We are always interested.

    Thanks for your offer
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  3. #3
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    austin, Texas, USA
    Posts
    1,029
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: WordWrap in ASP - solved!! (ASP)

    Thanks for the reply. I was originally finding problems getting a simple text line to wrap on re-display or print but, mysteriously, that behavior has since vanished. It seems things work fine if you are using text with spaces, like most expected input. Not sure what the problem was. Anyhow, I did spend a lot of time hacking out this function; it still has some utility in cases where you've got a long text string with no spaces (such as, perhaps, a GUID concatenation or a long URL reference such as the one on this reply page).

    The attached file shows the function and a way to call it via an include file.
    Attached Files Attached Files

Posting Permissions

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