New lines from Database to browser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vasanth kumar

    New lines from Database to browser

    I am using Microsoft for my Database

    I entered the data in the database table
    but, when I print this data on html page thro' asp script. I don't see my
    new lines. I tried by storing <br>(html new line tag) in the database. Then
    I am getting only 1st word of each line.
    How is this problem is handled. I am very new to this technology
    Any help is appreciated.

    Thanks,
    Vasanth


  • John

    #2
    Re: New lines from Database to browser




    Comment

    • John

      #3
      Re: New lines from Database to browser

      Response.Write Replace(myField ,vbCrLf,"<br>")

      or

      Response.Write Replace(myField ,Chr(13)&Chr(10 ),"<br>")


      Comment

      Working...