Paragraph marks in an ASP blog page.

20 pts.
Tags:
ASP
Microsoft Access
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 <br />. Or is there a better way to include a paragraph break when the Enter key is used?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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 = “<br />”, The blog output now accepts paragraph breaks made be the Enter key.

Bob

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following