Hi matthisco,
If you input some text into textbox, and save the message in the database.
You should handler the message before saving the message into database.
temp=TextBox1.Text;
temp = Server.HtmlEncode(temp);
temp = temp.Replace(" "," ");
temp = temp.Replace("\r\n","<br>");
Then you can save it into database, and display it, it will ok.