asp help

M

matt shudy

Hi,

I have a page that displays links that are stored in a db
table. I would like to display the description of the
webpage as the link. This is what i tried.

<a herf="<%objRS("Link")%>"> <%Response.Write objRS
("Description")%></a>

I have made a sucessful connection, the results print out
but do not display as hyperlinks. Does anyone know what I
am doing wrong?

Thanks,

Matt Shudy
 
T

Thomas A. Rowe

Use the following:

<a href="<%=objRS("Link")%>"><%=objRS("Description")%></a>

You don't need to use Response.Write statements, just use = instead when
display content on your pages.

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
M

matt shudy

Thank you very much : )

Matt Shudy
-----Original Message-----
Use the following:

<a href="<%=objRS("Link")%>"><%=objRS("Description")%></a>

You don't need to use Response.Write statements, just use = instead when
display content on your pages.

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp




.
 

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

Similar Threads

upadting db 1
Updating db... still struggling 2
HELP: Odd behaviour of ASP form 8
Request Form not showing hidden field value 2
Increasing time outs 2
ASP question 34
asp help 2
SQL help 1

Top