Forum Moderators: open
If I use the javascript function indexOf(“\n”), it returns the character number that matches the location of where the return key was pressed. Having discovered this, I tried swapping out the \n for <br> but cannot seem to get it to work correctly.
Has anyone found a way to work around this?
Thanks in advance!
You would put the following into your display.asp.
<%
Dim vbCrLf
Dim myText
vbCrLf = Chr(13)&Chr(10)
myText = Trim(rs("storedText")&"")
myText = Replace(myText,vbCrLf,"<BR>")
Response.Write(myText)
%> -=casey=-