erin027
asked on
In Classic ASP, How do I display <br> ?
Hello.
In Classic ASP coding, I used this coding below to display <br>
Description = replace(rs("Description"), chr(13) & chr(10),"<br>")
But here is the problem.
In this page there are many rs("Descriptoin") and since I replace the rs("Description") into Description, it's displaying same description in the page.
What do I have to do?
In Classic ASP coding, I used this coding below to display <br>
Description = replace(rs("Description"),
But here is the problem.
In this page there are many rs("Descriptoin") and since I replace the rs("Description") into Description, it's displaying same description in the page.
What do I have to do?
If there is displaying the same description over an over again, are you sure you are calling rs.MoveNext ? Or am I totaly missunderstanding your question?
ASKER
Thank you asvforce.
But the problem didn't solve.
<br> works, but my problem was because of the replacement, recordset is showing same results.
Here is my coding.
Thank you.
<% if rs.BOF or rs.EOF then %>
<%else
Description = Replace(Replace(Replace(rs ("Descript ion"), vbCrLf,"<br>"), vbCr, "<br>"), vbLf, "<br>")
i=1
Do until rs.EOF
%>
<%=rs("title")%>
<%=description%>
<%
rs.MoveNext
i=i+1
loop
End if
%>
But the problem didn't solve.
<br> works, but my problem was because of the replacement, recordset is showing same results.
Here is my coding.
Thank you.
<% if rs.BOF or rs.EOF then %>
<%else
Description = Replace(Replace(Replace(rs
i=1
Do until rs.EOF
%>
<%=rs("title")%>
<%=description%>
<%
rs.MoveNext
i=i+1
loop
End if
%>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you!
instead of storing value in variable and then print better u do this
instead of
<%Description = Replace(Replace(Replace(rs ("Descript ion"), vbCrLf,"<br>"), vbCr, "<br>"), vbLf, "<br>") %>
<%=description%>
do redirectly
<%=Replace(Replace(Replace (rs("Descr iption"), vbCrLf,"<br>"), vbCr, "<br>"), vbLf, "<br>") %>
instead of
<%Description = Replace(Replace(Replace(rs
<%=description%>
do redirectly
<%=Replace(Replace(Replace
Description = Replace(Replace(Replace(rs