Paragraph marks in a ASP blog page.

My web site includes an asp created blog page that accepts a message in a form text box, sends it to an Access database then returns it to the page. It works without trouble EXCEPT when a user hits enter to go to a new paragraph. The paragraph character is sent to the database but ignored when brought back to the page. I could use "Replace" but I don't know what to use in the stringfind to find a paragraph character. For the stringreplace I can use a simple

.
Any suggestions or other work around?
Thanks -- Bob


Bob Lafferty
Views: 400 | Community Opinion: 4

Tags..  ASP  blog  paragraphs  text

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 

When you save the text replace "\r\n" with the <BR>. Ans when you get it will automatically display new line gaps between text.




Bob Lafferty Said..

Tried \r\n -- didn't work.




Bob Lafferty Said..

I'm going to see what happens when I hit Enter here.
Now I have a new paragraph. If this works, how do they do it?




Bob Lafferty Said..

I solved my own problem. I found that asp recognizes chr(13) as the result of the Enter key and it can be used without quotes. My final line came down to outstr = Replace(Instr, strfind, strreplace) with strfind= chr(13) and strreplace = "
", The blog output now accepts paragraph breaks made by the Enter key.






Register or Login to Post Your Opinion