Home All Groups Group Topic Archive Search About

Using hyperlink control for downloading

Author
29 Apr 2006 8:28 PM
dave
Hi,

Is there a way to use a hyperlink control for downling a file from the
server to the client?  Currently, it works if I run the web app from
the server.  However, when I run the app from a client and right-click
the hyperlink, it shows a popup menu including 'Save Link As' but when
I select the 'Save link as' menu item nothing happens.

Thanks!

Author
29 Apr 2006 10:02 PM
Steve C. Orr [MVP, MCSD]
It is certainly possible to make a link initiate a file download.
It sounds like you've got some buggy code.  I suspect you've failed to turn
the file link into a URL and you are instead using a local path to the file.
The local path would work from the server but not from any clients, matching
the behavior you've described.

Here's more info on file uploads and downloads:
http://SteveOrr.net/articles/EasyUploads.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


Show quoteHide quote
"dave" <t***@charter.net> wrote in message
news:8ui752ptqks04qj3100e30nu5tf0pd57ta@4ax.com...
> Hi,
>
> Is there a way to use a hyperlink control for downling a file from the
> server to the client?  Currently, it works if I run the web app from
> the server.  However, when I run the app from a client and right-click
> the hyperlink, it shows a popup menu including 'Save Link As' but when
> I select the 'Save link as' menu item nothing happens.
>
> Thanks!
Author
30 Apr 2006 1:23 AM
dave
Thanks, Steve.  That's exactly what I did, I created a local link but
not a UTL. 

Appreciate the help!

Dave.



On Sat, 29 Apr 2006 15:02:44 -0700, "Steve C. Orr [MVP, MCSD]"
<St***@Orr.net> wrote:

Show quoteHide quote
>It is certainly possible to make a link initiate a file download.
>It sounds like you've got some buggy code.  I suspect you've failed to turn
>the file link into a URL and you are instead using a local path to the file.
>The local path would work from the server but not from any clients, matching
>the behavior you've described.
>
>Here's more info on file uploads and downloads:
>http://SteveOrr.net/articles/EasyUploads.aspx