Advertisement

04.28.2008 at 11:01AM PDT, ID: 23359589
[x]
Attachment Details

Want to be able to retain carriage returns when using a textbox to store data into a database

Asked by jholmes724 in .NET Framework 2.x, C# Programming Language

Tags: ,

I am using a standard asp.net textbox and when the users enter the data and put in carriage returns to space out paragraphs and I capture that data and store it to a SQL Server datatable, or any datatable, it does not retain the Carriage returns so the formatting of the text is wrong when the record is later retreived.  

My question is what is the best method to retain the carriage return so the formatting will remain as it was entered?Start Free Trial
[+][-]04.28.2008 at 12:37PM PDT, ID: 21456959

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 12:42PM PDT, ID: 21456997

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 12:46PM PDT, ID: 21457036

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 12:50PM PDT, ID: 21457058

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.x, C# Programming Language
Tags: c#, IE 6
Sign Up Now!
Solution Provided By: Chumad
Participating Experts: 1
Solution Grade: B
 
 
[+][-]04.28.2008 at 12:50PM PDT, ID: 21457060

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628