I have this code and this one has more than one data from the database
so my expected output is
1.line1
2.line2
but with this code i get
1.line12.line2
but the data from the database have nextline on it.
this is the code
<asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<%# Eval("News_data") %>
</ItemTemplate>
</asp:ListView>
from this database
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TDBSConnectionString %>"
SelectCommand="SELECT [news], [news_date],[news_data] FROM [ibsi.news]">
</asp:SqlDataSource>
this is the sample pics.

this is the output

when i use pre tag

You can easily replace it as that’s normally (you own the database, so you will know better) a hidden character like Line Feed char…
if it is, try this:
This happens for example if you are grabbing the data from a multirow textbox without convert it before.
\n\ris the same as (chr)13 + (chr)10 witch means LF (Line Feed), CR (Carriage Return).