Another method would be to write a protected helper function in your code
behind.
something like this:
<%# MyHelperFunction(DataBinder.Eval(Container.DataIte m, "post_text")))%>
Protected Function MyHelperFunction(ByVal value As Object) As String
If value Is DBNull.Value Then
Return ""
Else
Return value.ToString.Replace(vbCrLf,"<br/>")
End If
End Function
I find this kind of code necessary to protected myself from NULL values
coming back from db.
Greg
"TheDude5B" <ti*******@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
i have got it now thanks.
used the code
<%#( DataBinder.Eval(Container.DataItem, "post_text")).Replace(vbCrLf,
"<br/>")%>
and this has worked.
Thanks for your Help Greg