preserving txt box format when INSERTing
Hi,
Im using C# and SQL Server. I'm trying to upload some text from a simple form and keep the formatting (ie: line breaks)
I have searched and search for this but cant find an answer anywhere. The only thing I can find is Replace(str,"\n","<br />")
but I specifically DONT want HTML in my database.
Does anyone have any ideas what I can replace the '<br />' with in the above statement? Thanks in advance,
Pete
|