PC Review


Reply
Thread Tools Rate Thread

copy word doc from web server application to client machine

 
 
mike11d11
Guest
Posts: n/a
 
      15th Oct 2007
In a asp.net app. can you copy a file from the web server to the
client's hard drive? I have a word doc that is part of my web program
that i want copied to the users c:\ drive or temporary internet files
folder. Also can you create a text file on the users computer using a
stream writer or something? thanks in advance for any help.

 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      15th Oct 2007
"mike11d11" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> In a asp.net app. can you copy a file from the web server to the
> client's hard drive?


No, for fairly obvious security reasons...

> I have a word doc that is part of my web program that i want copied
> to the users c:\ drive or temporary internet files folder.


You can make the document available for download, but the user will need to
initiate the download e.g. by clicking on a hyperlink etc...

> Also can you create a text file on the users computer using a stream
> writer
> or something?


Again, no for the same reason.


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      15th Oct 2007
On Oct 15, 4:11 pm, mike11d11 <mike11...@yahoo.com> wrote:
> In a asp.net app. can you copy a file from the web server to the
> client's hard drive? I have a word doc that is part of my web program
> that i want copied to the users c:\ drive or temporary internet files
> folder. Also can you create a text file on the users computer using a
> stream writer or something? thanks in advance for any help.


You can't save a file without user interaction. You can open it in the
browser, or send an Open/Save prompt in order to allow to download the
file.

If you open a file in-line, a copy will be saved in the temporary
internet files folder (it depends on a settings)

 
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
XP-Pro VPN client cannot reach XP-Pro VPN server machine, but any other machine in the VPN servers network... =?iso-8859-1?Q?Markus_G=F6mmel?= Windows XP Work Remotely 4 28th Mar 2007 04:57 PM
ClickOnce Deployment - application shortcut on client machine =?Utf-8?B?ZGNobWFu?= Microsoft Dot NET Framework 0 29th Aug 2006 05:58 PM
ASP.NET application in the client machine with DC Anbazhagan Microsoft Windows 2000 Applications 0 9th Sep 2005 02:51 PM
Web app, copy files on client machine Iwan Petrow Microsoft C# .NET 3 12th May 2005 12:37 AM
Application error on client machine when sending fax - SBS2003 =?Utf-8?B?TWljaGFlbCBSYWdlcg==?= Microsoft Windows 2000 Fax 0 19th Oct 2004 11:27 PM


Features
 

Advertising
 

Newsgroups
 


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