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
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