Hi, I'm currently writing a c# application and I'm using a multiline textbox to save the address of a person. When the query is generated, the line breaks are shown as a "\r\n" escape sequence. However when the query is executed the lines breaks disappear. Any suggestions? Thanks a lot
Line breaks in mysql and c# .net
Collapse
X
-
for example: While I'm debugging the code, I can stop it after its created the query but before it executes it, so before it executes it looks like this "insert into tbl_example values(1, "test", "123 road\r\nsuburb" );" but after the statement is executed and I look at the database table, it shows that address as "123roadsuburb" . Hope that makes it clearer.Comment
Comment