troubleshooting Question

How to add a CR LF on SQL Server field and show as a new line in C# textbox

Avatar of hongning2009
hongning2009 asked on
.NET ProgrammingC#Microsoft SQL Server 2005
4 Comments1 Solution522 ViewsLast Modified:
I need to show in C# windows forms , in a multiline textbox I need to show the CR + LF that is stored in field.

In SQL Server I added the lines by doing the following
Update Table1 Set
COmment = comment + ' ' + char(13) + char(10) + @Comment

However when I view it in the C# , it becomes one line, what do I have to do to make it work?

Any help will be great.

Noel
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros