If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP Output not structured right

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-29-05, 12:04
BlueKalel BlueKalel is offline
Registered User
 
Join Date: Sep 2004
Posts: 15
ASP Output not structured right

Hi, I'm trying to get my text output thats in an access db to display properly. What I want is to preserve all the carraige returns, sentence structure. The database perserves it properly it's only when I write it out does it get squashed together.

Ex:
What DB shows:
5 Pieces of equipment:
(5)Micron Clientpro
25468750001,
32173220001,
25468730001,
25468370001,
25467790001,

What ASP produces:
5 Pieces of equipment5)Micron Clientpro 25468750001, 32173220001, 25468730001,25468370001,25467790001,

I use <%=strComments%> to display the output. I retrieve the data earlier in the code and assign it to a variable for later use. Any help would be appreciated, thanks.

Rob
Reply With Quote
  #2 (permalink)  
Old 11-29-05, 14:58
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Here's something you can do first that should help:

' Convert all vbCrLf to <br>.
' (This is the same as converting Chr(13) & Chr(10) to <br>.)
strComments = Replace(strComments, vbCrLf, "<br>")
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
  #3 (permalink)  
Old 11-29-05, 15:22
BlueKalel BlueKalel is offline
Registered User
 
Join Date: Sep 2004
Posts: 15
Cool thanks that worked.

Rob
Reply With Quote
  #4 (permalink)  
Old 11-29-05, 16:03
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Rob,

Glad to hear it and you're welcome!
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On