Welcome to WebmasterWorld Guest from

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

a href problem



12:42 pm on Sep 24, 2003 (gmt 0)

10+ Year Member

Iam trying to link a record from database and making it into a link:

<a href="<%=(rs_images.Fields.Item("filename"))%>"><%=(rs_images.Fields.Item("filename").Value)%></a>

when i run the page the file name wont come up?

why is that and how do i create a proper link.


12:46 pm on Sep 24, 2003 (gmt 0)

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Does the database record have the file extension (eg .html)?

If not you will need to add that....


12:48 pm on Sep 24, 2003 (gmt 0)

10+ Year Member

No its actually a file.

file name
text.txt (link)
new document.doc (link)


5:38 am on Sep 25, 2003 (gmt 0)

10+ Year Member

If you can capture the filename with the FileSystemObject you can create a variable for the name and perhaps use that in your link.

MyFile = File.Name
<a href="<%=MyFile%>">MyFile</a>


Featured Threads

Hot Threads This Week

Hot Threads This Month