Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server Line Feeds

Status
Not open for further replies.

itflash

Programmer
Jul 18, 2001
535
GB
Hi all

My app reads fields from a SQL Server Back End using ADO recordsets.

One of the fields is a ntext type. When I use my desktop application to populate it, it shows line feeds (ie where the user pressed enter). In SQL Server it shows the line feeds.

However, when I response.write the field, it puts it onto one line.

Is there any way of overcoming this?


Example.

The user types and is saved into SQL Server as such:
1
2
3
5

ADO recordset displays on ASP page
1 2 3 4 5



Thanks
ITflash
 

OK - done it.


tempvar=myrecset("notesfield")
if not isnull(tempvar) then
tempvar=replace(tempvar(chr(13), &quot;<BR>&quot;)
response.write(tempvar)
end if


Unless there are other suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top