asp question

  • Thread starter Thread starter Matt Shudy
  • Start date Start date
M

Matt Shudy

Hey,

Is there a way to open a file on my local hardrive using
asp? I have a two page sequence, the first page has a
dropdown box with the file names in it, the next page i
want to open the file selected from the previous page
(that file is located on the local c drive, a pdf file).
I want to do this because many computers will use this and
they have the same file name but different content... Is
there a way to open a file using a Server.Execute command
or something similar?

Thanks,

Matt Shudy
 
If you want to open files on the visitor's computer, then
in general, no, this isn't possible.

If it were possible, hackers and mischief-makers would be
causing your computer to opening thousands of files per
second, at least some of which you wouldn't appreciate.

With enough effort or programming assistance, you could
probably create an ActiveX control that would sit in the
page and do what you want. However, that solujtion is
complex, and not all visitors might want to download the
control.

I'm at somewhat of a disadvantage here because I don't
know anything about your application, In general, though,
I would investigate ways of storing all the files on the
server.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

instant messenger with asp 1
Trying to store pics in a database... 3
redirecting using asp 2
asp question 2
asp question... 1
scroll help 2
ASP Problem 7
Can't see site on local machine when using .asp pages 2

Back
Top