471,086 Members | 1,097 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 software developers and data experts.

DataFormatString Question with "RETURNS" in Data Type

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
Aug 15 '06 #1
2 2051
either put the content in a <pre></pretag

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

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

cheers

neil

Phillip Vong wrote:
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
Aug 15 '06 #2
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!
<ne**********@gmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
either put the content in a <pre></pretag

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

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

cheers

neil

Phillip Vong wrote:
>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

Aug 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tim | last post: by
5 posts views Thread by Dan C Douglas | last post: by
59 posts views Thread by Pierre Quentel | last post: by
9 posts views Thread by Klaus Johannes Rusch | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.