Replace

May 9, 2003 by Guido Heller

For example:

<%# table.FieldValue("text", Container).Replace(Chr(13), "<br>") %>

add the .Replace(Chr(13), "<br>")  behind ...Container)

RE: Replace

May 10, 2004 by Jay Sul

Hi...

I think i want to do the same... when i am updating a field in the database, I want to change some characters including removing carriage returns with <br>

I tried the following

<asp:TextBox Columns="50" ID="Body" Rows="15" runat="server" text='<%# dsNews.FieldValue("Body", Container).Replace(Chr(13), "<br>") %>' TextMode="MultiLine" />

but it remains the same on submit... ?? Any suggestions???