multiline textbox line feed

D

deja

i've got a multiline textbox into which I have put string data from my
sqlserver database via a strongly typed dataset (i've tried varchar and
nvarchar to see if there was any difference - there doesn't appear to
be as it is mapped to string in the dataset whatever).

On postback, when I try to compare the datasset value with the value in
the textbox (using .Text), it there are no linefeeds then everything is
fine, but otherwise the comparison doesn't seem to work. For every 1
"square block" (representing the newline character) seen in the watch
window for the dataset value, there are 2 for the .Text value despite
them both being the same.

Consequently this means I am doing an update when I don't want to. Does
anyone know how to fix this?

TIA
Phil
 

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

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top