PC Review


Reply
Thread Tools Rate Thread

asp question

 
 
Matt Shudy
Guest
Posts: n/a
 
      25th May 2004
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
 
Reply With Quote
 
 
 
 
MD Websunlimited
Guest
Posts: n/a
 
      25th May 2004
Hi Matt,

You can use ASP along with FSO to manipulate files on the server but not the client machine. If you wish to work with files on the
client you'll have to use HTA file instead.

--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
J-Bots Plus 2002 87 components for FrontPage
http://www.websunlimited.com/order/P...p_help_dir.htm
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible

"Matt Shudy" <(E-Mail Removed)> wrote in message news:1216f01c4425c$2fef68a0$(E-Mail Removed)...
> 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



 
Reply With Quote
 
Jim Buyens
Guest
Posts: n/a
 
      25th May 2004
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)
|/---------------------------------------------------
*----------------------------------------------------



>-----Original Message-----
>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
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Perhaps and off topic question....but could use some help with video question.....I don't need codec help, just a general question. Bret Miller DIY PC 0 13th Oct 2006 12:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.