• WordWrap in ASP – solved!! (ASP)

    Home » Forums » Developers, developers, developers » Web design and development » WordWrap in ASP – solved!! (ASP)

    Author
    Topic
    #381500

    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 grin — and people may find it useful. OTOH, I may have missed some really simple solution but I did look high and low first.

    Viewing 0 reply threads
    Author
    Replies
    • #643898

      We are always interested.

      Thanks for your offer

      • #644093

        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.

    Viewing 0 reply threads
    Reply To: WordWrap in ASP – solved!! (ASP)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: