473,386 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 2144
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: comp.lang.php | last post by:
echo mime_content_type('/var/www/html/video/small.mov'); // 1.5mb Quicktime video returns "video/quicktime" echo mime_content_type('/var/www/html/video/huge.mov'); // 10.5mb Quicktime video...
5
by: Tim | last post by:
Hello All, I am writing a program that checks for the NumLock status and turns the NumLock on if it is off. I'm not sure what I'm overlooking at this point, but the code will compile and run, but...
5
by: Dan C Douglas | last post by:
I have just installed VS.NET 2003 on my computer. I have a project that I have been developing on VS.NET 2002. I haven't upgraded this project to VS.NET 2003 yet and I am still developing it in...
2
by: CVerma | last post by:
I'm using an html input control (System.web.UI.HTMLControls.HTMLInputFile) to upload files such as msword, excel, jpg, and pdf. I have the encType property set in the form:...
7
by: Jim Carlock | last post by:
Does a SELECT element (listbox) need to be inside a FORM element? The code I'm playing with: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"...
59
by: Pierre Quentel | last post by:
Hi all, In some program I was testing if a variable was a boolean, with this test : if v in My script didn't work in some cases and I eventually found that for v = 0 the test returned True ...
2
by: Lenn | last post by:
Hello, I am using reflections to get Parameters and their types of a COM Interop Assembly method. ParameterType.FullName returns "System.Boolean&" what's the significance of & at the end? ...
9
by: Klaus Johannes Rusch | last post by:
IE7 returns "unknown" instead of "undefined" when querying the type of an unknown property of an object, for example document.write(typeof window.missingproperty); Has "unknown" been defined...
1
by: redbaron | last post by:
I stuck in new multiprocessing module (ex. processing). I dont' understand why queue.get_nowait() never returns data, but always raises Empty, even if it is guaranteed that queue is not empty. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.