Advertisement

02.07.2008 at 11:12AM PST, ID: 23145504
[x]
Attachment Details

new line in strings

Asked by amillyard in Visual Studio, Microsoft Visual C#.Net, .NET Framework 2.x

Tags:

I am create a multiline text entry vai an asp.net page.

this is then stored (via sql stored procedure) in db table as a variable type:  nvarchar(max)

on another asp.net page, a db routine reads this as a string direct into the .text label control.

the problem is that the text output is not containing any new line attributes and puts everything on a single line.

when accessing the edit page (which uses the textbox multiline control) the text is displayed fine.

how do I resolved this?

your time and efforts on this enquiry are much apprieated.Start Free Trial
[+][-]02.07.2008 at 11:23AM PST, ID: 20844094

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: Visual Studio, Microsoft Visual C#.Net, .NET Framework 2.x
Tags: c#, asp.net 2.x, vs studio pro 2008, sql server 2005
Sign Up Now!
Solution Provided By: JimBrandley
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.07.2008 at 11:54AM PST, ID: 20844372

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

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

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