problem displaying text fron Db to textarea
Hello,
I am using textarea in my form. I saved the text in Oracle. Before I display value for textarea, I used Replace method. Here is my code for Replace.
strrisks = rs("risks")
if isNULL(strrisks) then
strrisks = NULL
else
strrisks = Replace(strrisks, vbCrLf, "<BR>")
strrisks = Replace(strrisks, " ", " ")
end if
when I have to display the data, I use this code....
<INPUT type="radio" name="chkrec" value="x"
onclick=form1.risk.value='<%=strrisks%>'">
When it displays , it displays text with <BR>
line1<BR>lin2<BR>line3<BR>
Can someone please help me. I spent lot of time on this.
Thank you
|