How to format text generated by database and use response.write?

X

xfile

Hi,

How can we format text generated from the database and use response.write to
show on an ASP page?

Attached are a sample code for your reference:

response.write "  "
next
end if
response.write "<a HREF=""products.asp?id=" & id & "&amp;cat=" &
Server.URLEncode(name) & """>" & name & "</a>" & "<br>" & vbcrlf

Many thanks.
 
R

Ronx

One way:

response.write "&nbsp;&nbsp;"
next
end if
%>
<!-- use CSS or <font> tags to format the hyperlink -->
<a HREF="products.asp?id=<%=
id%>&amp;cat=<%=Server.URLEncode(name)%>"><%=name%></a><br>
<!--more HTML -->
<% 'next line of asp code
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top