Hi,
I have a repeater with a label that binding to the database. But i want to decode the output and remain line break.
<asp:Label ID="lblComment" runat="server" Text='<%# Server.HtmlEncode(Eval("CommentContent").ToString().Replace("\n", "<br />"))%>'></asp:Label>
Result: Nice!!<br /><br />Awesome!!!!<br />
Expected result :
Nice!!
Awesome!!!!!
Any way to make it work?
...
Go to the complete details ...