Click here to Skip to main content
15,908,675 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to you create a text file in the client machine using classic ASP?
Is it possible?
Posted

You can't create files on the client's machine with ASP. Though ActiveX or java applet can.
 
Share this answer
 
Comments
Espen Harlinn 12-Jul-11 10:13am    
Right, my 5
The only file access you have is too cookies - see W3 Schools ASP Cookies[Clicktiy]  [edit]although users can block these.[/edit]
 
Share this answer
 
v2
You have to do a call to Response.WriteFile() which will prompt the user to either save or reject the file. That's the only way to get afile onto the client's machine from your web site.

If they're not running IE, the ActiveXcrement method won't work at all. Consider that IE's market share shrinks every day, depending on ActiveXexcrement isn't viable, not to mention that almost nobody allows ActiveXcrement to run from the browser anyway.
 
Share this answer
 
v3
Thanks for the replies. Think i will use applet
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900