ASP.NET Replace Code
Using the dreamweaver mx Insert Record Behaviour on ASP.NET VB is there a way to convert a linebreak in a form textfield into a <br> tag
Cheers
Phil
Using the dreamweaver mx Insert Record Behaviour on ASP.NET VB is there a way to convert a linebreak in a form textfield into a <br> tag
Cheers
Phil
Comments
Replace
For example:
<%# table.FieldValue("text", Container).Replace(Chr(13), "<br>") %>
add the .Replace(Chr(13), "<br>") behind ...Container)
RE: Replace
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???
You must me logged in to write a comment.