when the save process begins, try doing this ;
string val = textbox1.Text.replace("\r\n","<br />");
or when you retrive the data from database ;
textbox1.Text = dbValue.replace("\r\n","<br />");
--
Cem Sisman
twitter: @cemsisman
http://cemsisman.com
"Gabriel" <> wrote in message
news:9A1C3F57-8A7F-423B-B518-...
>I not to be able to store the carriage return from a multiline textbox
> control on my web application.
>
> So when the data is displayed back from the database there are no carriage
> return. All the lines are displayed as a single long line.
>
> I've check the database (MSSQL 200
and it doesn't seem to be storing it.
> But if I save the information from a textbox using a winform everything is
> stored correctly.
>
> Does anyone have any suggestions to help me solve this problem?
>
> I am using Visual Studio 2008. C# in a web application running from IIS
> 6.0
>
> Thanks.