•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 427,360 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,042 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 3206 | Replies: 5
![]() |
•
•
Join Date: Sep 2004
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Hello. I am new to this forum. I am not a web developer, but I am willing to learn. I am a network tech. So here is what I need to do: I need to be able to list and sort by date some files in a folder on another page. I also need the file names to be hyperlinked to the actual file so that the people can download the file.
Our emergency preparedness director will release press releases and put them in a folder. I need this page to update every time he puts something new in. I already found some code that will do everything that I need to do, except put the hyperlink back to the file. The code that I found can be seen here: http://www.aspfaqs.com/ASPScripts/Pr....asp?FAQID=118. I have also attached the code in a txt file to this message.
If anyone can tell me what I need to do to get hyperlinks to work, I would appreciate it. Thank you.
Rusty Painter
rpainter@dorchestercounty.net
Our emergency preparedness director will release press releases and put them in a folder. I need this page to update every time he puts something new in. I already found some code that will do everything that I need to do, except put the hyperlink back to the file. The code that I found can be seen here: http://www.aspfaqs.com/ASPScripts/Pr....asp?FAQID=118. I have also attached the code in a txt file to this message.
If anyone can tell me what I need to do to get hyperlinks to work, I would appreciate it. Thank you.
Rusty Painter
rpainter@dorchestercounty.net
Could you not just modify...
fname = fileItem.Name
To read
fname = "<a href=http://downloads.com/myfiles/>" & fileItem.Name & "</a>
This won't work if you have sub directories
fname = fileItem.Name
To read
fname = "<a href=http://downloads.com/myfiles/>" & fileItem.Name & "</a>
This won't work if you have sub directories
Kindest Regards,
Ryan Healey
InstantASP Ltd
ASP.NET Collaboration and Support Tools
http://support.instantasp.co.uk/imag...ntasp_logo.gif
Ryan Healey
InstantASP Ltd
ASP.NET Collaboration and Support Tools
http://support.instantasp.co.uk/imag...ntasp_logo.gif
Sorry Correction...
fname = "<a href=http://downloads.com/myfiles/" & fileItem.Name & ">" & fileItem.Name & "</a>
fname = "<a href=http://downloads.com/myfiles/" & fileItem.Name & ">" & fileItem.Name & "</a>
Kindest Regards,
Ryan Healey
InstantASP Ltd
ASP.NET Collaboration and Support Tools
http://support.instantasp.co.uk/imag...ntasp_logo.gif
Ryan Healey
InstantASP Ltd
ASP.NET Collaboration and Support Tools
http://support.instantasp.co.uk/imag...ntasp_logo.gif
•
•
Join Date: Sep 2004
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Here's the error that I get when I try that.
Error Type:
Microsoft VBScript compilation (0x800A0409)
Unterminated string constant
/test.asp, line 58, column 97
fname = fname = "<a href=http://localhost/myfiles/" & fileItem.Name & ">" & fileItem.Name & "</a>
My folder is in the root of the web. Any sugestions?
Error Type:
Microsoft VBScript compilation (0x800A0409)
Unterminated string constant
/test.asp, line 58, column 97
fname = fname = "<a href=http://localhost/myfiles/" & fileItem.Name & ">" & fileItem.Name & "</a>
My folder is in the root of the web. Any sugestions?
•
•
Join Date: Jul 2004
Location: Sydney, Australia
Posts: 166
Reputation:
Rep Power: 5
Solved Threads: 7
You're missing a closing quote mark at the end of the string. Try:
fname = fname = "<a href=http://localhost/myfiles/" & fileItem.Name & ">" & fileItem.Name & "</a>"
fname = fname = "<a href=http://localhost/myfiles/" & fileItem.Name & ">" & fileItem.Name & "</a>"
If I've been a help please confirm by clicking the Add to Lafinboy's Reputation link in the header of this reply.
Lafinboy Productions
:: Website Design :: Website Development ::
Lafinboy Productions
:: Website Design :: Website Development ::
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Java Swing : handling hyperlinks in JEditorPane (Java)
- Display Search Results as Hyperlinks to Records (ASP)
- Hyperlinks everywhere!!!! (Viruses, Spyware and other Nasties)
- Hyperlinks In Outlook Express (Windows NT / 2000 / XP / 2003)
- Data Grid: How to include Hyperlinks (ASP.NET)
- internet explorer hyperlinks (Web Browsers)
- Major IE Problem (Web Browsers)
- IE6 not working for certain users on XP home (Web Browsers)
Other Threads in the ASP Forum
- Previous Thread: Automatic subject line for Mails...
- Next Thread: Displaying error line number


Linear Mode