October 12, 2018 at 7:45 am
From a ASP.NET app, there is a multiple line text box.
If user input text like below, how to know new line are saved?
Thank you for your fax.
I'll reissue a check to you.
If you have any question, please call me at xxx-xxx-xxxx.
October 13, 2018 at 6:07 am
adonetok - Friday, October 12, 2018 7:45 AMFrom a ASP.NET app, there is a multiple line text box.
If user input text like below, how to know new line are saved?Thank you for your fax.
I'll reissue a check to you.
If you have any question, please call me at xxx-xxx-xxxx.
nvarchar columns will store linefeed characters. So why do you think it won't be saved?.
October 14, 2018 at 6:56 am
adonetok - Friday, October 12, 2018 7:45 AMFrom a ASP.NET app, there is a multiple line text box.
If user input text like below, how to know new line are saved?Thank you for your fax.
I'll reissue a check to you.
If you have any question, please call me at xxx-xxx-xxxx.
Check the column for NCHAR(10) or CHAR(10) depending on the datatype of the column. The CHARINDEX() function will help you in this area.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2018 at 8:05 am
Jeff Moden - Sunday, October 14, 2018 6:56 AMadonetok - Friday, October 12, 2018 7:45 AMFrom a ASP.NET app, there is a multiple line text box.
If user input text like below, how to know new line are saved?Thank you for your fax.
I'll reissue a check to you.
If you have any question, please call me at xxx-xxx-xxxx.
Check the column for NCHAR(10) or CHAR(10) depending on the datatype of the column. The CHARINDEX() function will help you in this area.
Windows encoding will have line endings of characters 13 and 10 respectively, as Jeff said, checking for character 10 will do the job.
😎
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply