Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I am working on comments in a social application and when I press enter in text area to post a comment it goes to next line but when I retrieve data from comment table and display in html it shows everything in same line.
Please help me do it as it is causing too much delay in deliverable.

I have figured out that there should be some
but when to insert it in text? should I save it in database.
Please let me know how should I go about it.
Posted

1 solution

when you press ENTER key in text area you will get \r\n in .Value property, you need to replace them with paragraph tag in HTML and then show them to user
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900