Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Downloading file

Status
Not open for further replies.

gsathya

IS-IT--Management
Mar 21, 2001
5
US
I would like to know that is it possible to download a excel file from the net to the client directory automaticatlly(say c:\Temp of client) without prompting any dialog box or any message. Please help me in this.

Thanks

SAthya
 
What you're trying to do is impossible using ASP for obvious security reasons. To do something like this you need to bypass the client browsers by writing your own client-side application and having your users install it on their machines. Then you'll have access to start messing around with their hard drives.
 
If you put a link to an EXcel file like this


<a href=&quot;/docs/myfile.xls&quot;>Click here to view myfile.xls</a>


the client broswer will ask the user to open or save the file. I am not sure, but I think that by default the browser opens it.

Then the user can have your Excel spreadsheet embedded into your browser and he'll be able can save it locally.

As kor says, it's impossible for ASP to write on client hard disks.


Hope this helps. Arlequín
arlequin@montevideo.com.uy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top