Re: Save file from the Server to User's Desktop
- From: "John Timney \(ASP.NET MVP\)" <timneyj@xxxxxxxxxxxxx>
- Date: Fri, 22 Jul 2005 23:17:44 +0100
You cant - its restricted by sandbox security. The best you can do is start
a binary donwload from an asp.net page and hope the user accepts it.
--
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"EC" <EC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F86647C4-A1AA-4F83-9A40-7C49A7EEF548@xxxxxxxxxxxxxxxx
>I am trying to save a file to an end users desktop from the Server on the
> click of a button. This works when run the application on my local but
> does
> not work when the application is running on the web server because Dim
> copyfiletodesktop As String = "C:\temp\" points to the Web server's C
> drive
> and not the end users C while when I run the application on my desktop, C
> points to my C Drive and that is why it works.
>
> Does anyone know how I can change this line of code to point to end users
> (external) Desktop and get to file to their desktops no matter their
> computer
> setup?
> Please Note that I know how to change it to "C:\Documents and
> Settings\myprofilename\Desktop\" but the problem is this will not work for
> everyone since I don't know their profile name and is not the best way to
> do
> it.
>
> Thanks for your help.
> EC.
>
.
- Follow-Ups:
- References:
- Prev by Date: Re: High Memory Usage Garbage Collection Question
- Next by Date: Listbox oddity
- Previous by thread: Save file from the Server to User's Desktop
- Next by thread: Re: Save file from the Server to User's Desktop
- Index(es):