By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,871 Members | 2,418 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,871 IT Pros & Developers. It's quick & easy.

pdf files are not getting open help me please

P: 15
hai
I am new bie for ASP

I retrieved files name from a folder by using FSO

problem is if i click that name link files are getting open


Expand|Select|Wrap|Line Numbers
  1. <% 
  2.     folder = "C:\Documents and Settings\Administrator\Desktop\hermitage\pdf" 
  3.  
  4.     set fso = CreateObject("Scripting.fileSystemObject") 
  5.     set fold = fso.getFolder(folder) 
  6.     for each file in fold.files 
  7.         response.write"<a href='"&file.name &"'> " & file.name & "</a>" &"<br>" 
  8.     next 
  9.     set fold = nothing: set fso = nothing 
  10. %>
  11.  
help me to open that files

thanks in advance
Feb 21 '07 #1
Share this Question
Share on Google+
1 Reply


shweta123
Expert 100+
P: 692
Hi,

To display the Pdf files I think you have to give the full path.
So try this <a href="http://localhost/" & '"&file.name &"'>


Shweta
Feb 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.