If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Turn returned field into hyperlink?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-03, 06:45
spideywebber spideywebber is offline
Registered User
 
Join Date: Feb 2003
Location: England
Posts: 2
Question Turn returned field into hyperlink?

How do i turn turn a returned field into a hyperlink. Im trying to create a simple content manager, and want to use recovered fields as links to the documents. Im stuck with the syntax inserting the field.value into the <a href=" ..field.value ..." > field </a>
Any help would be appreciated.

thanks
Reply With Quote
  #2 (permalink)  
Old 02-11-03, 07:10
pal19 pal19 is offline
Registered User
 
Join Date: Feb 2003
Location: @ home
Posts: 163
Re: Turn returned field into hyperlink?

It's simple, just put your variable value inside the href section.
Something like this:

<a href="<%=MyVar%>"> field </a>


____________________

Paulo Gonçalves
Reply With Quote
  #3 (permalink)  
Old 02-11-03, 08:33
spideywebber spideywebber is offline
Registered User
 
Join Date: Feb 2003
Location: England
Posts: 2
Re: Turn returned field into hyperlink?

Quote:
Originally posted by pal19
It's simple, just put your variable value inside the href section.
Something like this:

<a href="<%=MyVar%>"> field </a>


____________________

Paulo Gonçalves
Thanks Paulo, ive looked at my original code <%=rs("Filename")%> , and modified it as
<a href="<%=rs("Filename")%>">"<%=rs("Filename")%>"</a>.

That seems to have sorted it out, i think it's all the nesting that stopped it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On