Gridview Update Strips Carriage Returns CHAR(13)
Posted on 2011-03-22
I am using a Gridview Control. I edit a record which uses a text box, when I save it it seems to strip out any carriage returns (CHAR(13)) that were there before.
I am simply using an Gridview and SQLDataSource Update command and the text box contains NVARCHAR data.
Interesting, when I first add this record using a web form, I use a similar multi line textbox and it preserves any carriage returns that are added.
Any ideas at all?