Click to See Complete Forum and Search --> : Can someone help me translate this?


aaron_brown99
January 31st, 2003, 10:25 AM
<%# databinder.eval(container.dataitem, "c_account_info").ToString.Replace(ControlChars.CrLf, "<br/>") %>

This basically takes any carriage returns in the database field and replaces them with html <br> characters. It's easy to do in VB, but can anyone help me convert this into c#? I've poured over the MSDN documentation and my O'Reilly reference, and I simply can't find any C# equivalent to "ControlChars.CrLf."

Any help would be great!

pareshgh
January 31st, 2003, 12:03 PM
use
\n for linefeed and
\r for carriage return

Paresh