Im new to asp net, and am having trouble preserving line breaks in the displayed data
The data is entered using a MultiLine text box, and stored in a sql database. And then the displayed data is displayed in a label , The label is situated insde a DataList control. As can be seen below
<asp
ataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<Asp:Label ID="newsARTICLELabel" runat="server" Text='<%# Eval("newsARTICLE") %>'>
</Asp:Label>
</ItemTemplate>
</asp
ataList>
Does anyone know how i can , display (preserve) the line breaks?
I have done this in asp using mx2004, but cant seem to get this to work using Microsoft visual web.
Any pointers would be appreciated. thanks.
The data is entered using a MultiLine text box, and stored in a sql database. And then the displayed data is displayed in a label , The label is situated insde a DataList control. As can be seen below
<asp
<ItemTemplate>
<Asp:Label ID="newsARTICLELabel" runat="server" Text='<%# Eval("newsARTICLE") %>'>
</Asp:Label>
</ItemTemplate>
</asp
Does anyone know how i can , display (preserve) the line breaks?
I have done this in asp using mx2004, but cant seem to get this to work using Microsoft visual web.
Any pointers would be appreciated. thanks.