Forums
This topic is locked
displaying memo correctly
Posted 12 Jul 2002 21:11:01
1
has voted
12 Jul 2002 21:11:01 Joseph Marshall posted:
I have a page where a user can insert a review. he enters a text of a review. When you go back to edit the review you can see the text in the correct format but that is because it is within a textbox. however, when you view the review all of the paragraphs are gone.i need the format of the reviews to be shown correctly. If at all possible it would be nice to not only do this but also keep it so that any of the hypertext that was entered into the review will process.
any suggestions?
thanks alot
joe marshall
Edited by - jhm4021 on 12 Jul 2002 21:13:54
Replies
Replied 12 Jul 2002 21:33:58
12 Jul 2002 21:33:58 aegis kleais replied:
Use the ASP Replace function to replace the text's VbCrLf's with <br> So where they press RETURN twice, it'll insert 2 <br>, cause when ASP views the text, it outputs it as HTML
Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Replied 12 Jul 2002 22:11:55
12 Jul 2002 22:11:55 Joseph Marshall replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Use the ASP Replace function to replace the text's VbCrLf's with <br> So where they press RETURN twice, it'll insert 2 <br>, cause when ASP views the text, it outputs it as HTML
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
how do i use this function?
thanks
joe
Use the ASP Replace function to replace the text's VbCrLf's with <br> So where they press RETURN twice, it'll insert 2 <br>, cause when ASP views the text, it outputs it as HTML
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
how do i use this function?
thanks
joe
Replied 12 Jul 2002 22:40:59
12 Jul 2002 22:40:59 Mitchel Tendler replied:
Replace this:
<%=(RecordsetName.Fields.Item("MemoFieldName".Value)%>
With this:
<%= Replace(RecordsetName.Fields.Item("MemoFieldName".Value, VbCrLf, "<BR>"%>
When in doubt...reboot!
<%=(RecordsetName.Fields.Item("MemoFieldName".Value)%>
With this:
<%= Replace(RecordsetName.Fields.Item("MemoFieldName".Value, VbCrLf, "<BR>"%>
When in doubt...reboot!
Replied 12 Jul 2002 23:53:57
12 Jul 2002 23:53:57 Joseph Marshall replied:
thank you
joe
joe
Replied 13 Jul 2002 05:46:33
13 Jul 2002 05:46:33 aegis kleais replied:
My bad. I shoulda shown code instead of just saying how it's done. LOL. I'll get the next one,
Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])