Linking a document (not residing in web directory) to hyperlink
-
Hi, I have a requirement where I have a folder on local hard-drive containing many .pdf files. Now I want to have a Hyperlink control point to this path of hard-drive folder and upon clicking on it the the pdf file should open in the browser. The file path is say: C:/DocumentUpload/abc.pdf I apply this to the url of hyperlink but it does not work. On mouse over the url shows: file:///C:/DocumentUpload/abc.pdf It will however work if i place the file in my web directory and just apply the filename "abc.pdf" to the url. Then the hyperlink on mouse over shows http://localhost/mydomain/abc.pdf How can I have my files in C:/DocumentUpload/ and still make it work using hyperlink. Or is there some other alternative. NOTE: I positively cannot place the files in web directory folder.!! Any help is eagerly awaited!
Pankaj Chamria, Software Programmer.
-
Hi, I have a requirement where I have a folder on local hard-drive containing many .pdf files. Now I want to have a Hyperlink control point to this path of hard-drive folder and upon clicking on it the the pdf file should open in the browser. The file path is say: C:/DocumentUpload/abc.pdf I apply this to the url of hyperlink but it does not work. On mouse over the url shows: file:///C:/DocumentUpload/abc.pdf It will however work if i place the file in my web directory and just apply the filename "abc.pdf" to the url. Then the hyperlink on mouse over shows http://localhost/mydomain/abc.pdf How can I have my files in C:/DocumentUpload/ and still make it work using hyperlink. Or is there some other alternative. NOTE: I positively cannot place the files in web directory folder.!! Any help is eagerly awaited!
Pankaj Chamria, Software Programmer.
Pankaj C wrote:
NOTE: I positively cannot place the files in web directory folder.!!
- Use IE - Add your website in the trust site. then, I think it will work.. but it's not good practice for public site.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
Pankaj C wrote:
NOTE: I positively cannot place the files in web directory folder.!!
- Use IE - Add your website in the trust site. then, I think it will work.. but it's not good practice for public site.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
Tks for the reply Michael. I tried your suggestion but it is behaving still in the same manner. I think for a hyperlink only http://.... type of urls work. I guess a url like c:/DocumentUpload is not identified by the explorer. Anyone with any other suggestions, pl lemme know!
Pankaj Chamria, Software Programmer.