andycharger
Centurion
- Joined
- Apr 2, 2003
- Messages
- 152
Hi.
Im storing the results of my textarea on my webform to a SQL server database. I have written the following bit of code to remove the chr(10) and chr(13) and replace them with vbcr.
strBody = request.form("txtNews")
strBody = Replace(strBody, chr(10), "")
strBody = Replace(strBody, chr(13), "$$")
strBody = Replace(strBody, "$$", vbcr)
I hoped this would then allow my item to be viewed with the line breaks in the right place.
However, when I view the results as the news item on the webpage, it is on one continuous line. If I go to the edit page and view it in the Textarea editor, it is correct on separate lines.
I want to show it in a <td> cell with the line breaks beween the sentences. How can I do this?
Im using a <asp:datalist> to show the results and my <td> in this looks like this:
<td class="normaltext">
<% # DataBinder.Eval(Container.DataItem, "News_text")%>
</td>
Can anyone help?
Im storing the results of my textarea on my webform to a SQL server database. I have written the following bit of code to remove the chr(10) and chr(13) and replace them with vbcr.
strBody = request.form("txtNews")
strBody = Replace(strBody, chr(10), "")
strBody = Replace(strBody, chr(13), "$$")
strBody = Replace(strBody, "$$", vbcr)
I hoped this would then allow my item to be viewed with the line breaks in the right place.
However, when I view the results as the news item on the webpage, it is on one continuous line. If I go to the edit page and view it in the Textarea editor, it is correct on separate lines.
I want to show it in a <td> cell with the line breaks beween the sentences. How can I do this?
Im using a <asp:datalist> to show the results and my <td> in this looks like this:
<td class="normaltext">
<% # DataBinder.Eval(Container.DataItem, "News_text")%>
</td>
Can anyone help?