Feb 17, 2019 05:24 PM|studio7t7|LINK
I have a multi-line text box in my saving form and I allow users enter for line breaks.So I save it as it is to the db like below code.
cmd.Parameters.AddWithValue("@IntroText", txtIntro.Text.Replace("\r\n", "<br />"));
So this part works perfectly.But the issue is when I bind these values to a FormView in order to edit the records.
<asp:TextBox ID="Leder1TextBox" runat="server" Text='<%# Bind("Leder1") %>' CssClass="txtapplicantfname" TextMode="MultiLine"/>
It shows the <br/> tags in textbox in edit view.How to I format my multiline text box in FormView and remove <br/> tags?