DataFormatString Question with "RETURNS" in Data Type

P

Phillip Vong

VS2005 on a SQL 2000
Please help me understand how to fix this problem.

In SQL, a column is assigned Data Type of nvarchar(250). In each row, the
value looks like this.
FirstName LastName "SQARE BOX" a12720 "SQUARE BOX" 14 Meadow Road

The "SqareBox" shapes are Returns from the keyboard.

When I'm doing a Details View, all this information runs together with just
spaces where the SQUARE BOXES are. Is there some kind of formating in VS2005
setting to tell it to recognize them as RETURNS so it will display properly?

Thanks in advance.

Phil
 
N

neilmcguigan

either put the content in a <pre></pre> tag

or replace the carriage return/line feeds with a <br /> tag, like this:

myString.Replace("\r\n", "<br />")

cheers

neil
 
P

Phillip Vong

Please forgive me for sounding stupid, but I'm a newbie. Where do I put
this code? Do I put this as in an event handler? If so, which one?

The data is in DetailsView1 and bound to AddText.

What do I do with this code?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top