Results 1 to 3 of 3

Thread: line break [closed]

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    59

    line break [closed]

    May i know is there anyway to store line break into MSSQL ?

    Eg. I have a text string "This is my 1st line.\r\nThis is m 2nd line."

    After i insert into db, then i retrieve out and display. It wont line break.
    It show the whole actual string "This is my 1st line.\r\nThis is m 2nd line."


    Please advise.
    Thanks.
    Last edited by pelican; Apr 8th, 2005 at 05:15 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: line break

    Do a replace on \n, and replace it with System.Environment.NewLine (assuming you're putting that into a textbox or the likes.)

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    59

    Re: line break

    Thanks.

    I've realise my problem.

    I am creating another thread.

Posting Permissions

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



Click Here to Expand Forum to Full Width