asp help

  • Thread starter Thread starter matt shudy
  • Start date Start date
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
 
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.
==============================================
 
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




.
 
Back
Top