B
Brad Baker
I'm trying to write a small asp.net webpage in c#. I've written code which
connects to a microsoft sql database, runs a sql query and then prints that
data out using a repeater.
The problem is that the data in the database is in plain text and contains
new lines (\n). When I print the records I need convert new lines to <br>'s.
Is there an easy way to do this?
Here is where I am printing the data.
<ASP:Repeater id="results_repeater" runat="server">
<HeaderTemplate>
<table>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%# DataBinder.Eval(Container.DataItem, "IEDescription") %> </td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</ASP:Repeater>
Thanks,
Brad
connects to a microsoft sql database, runs a sql query and then prints that
data out using a repeater.
The problem is that the data in the database is in plain text and contains
new lines (\n). When I print the records I need convert new lines to <br>'s.
Is there an easy way to do this?
Here is where I am printing the data.
<ASP:Repeater id="results_repeater" runat="server">
<HeaderTemplate>
<table>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%# DataBinder.Eval(Container.DataItem, "IEDescription") %> </td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</ASP:Repeater>
Thanks,
Brad