Getting message: Microsoft JScript runtime error '800a1391' 'vbCrLf' is undefined
Posted on 2006-05-02
Hi. I'm using Classic ASP JS. I'm trying to figure out the code to use for the "line break" in JS. I used the string from one of my VBScript pages, but I get the error posted in the "Title" box above.
Here's the line:
<p><%=Replace(rsProdDetail.Fields.Item("ProdLongDesc").Value, vbCrLf, "<br>")%></p>
I've tried replacing the "vbCrLf" with "\n", but still get a similar error.
Could someone, please, help me with a JS-equivalent for this?