Saving a generated EXCEL file from HTML into the server with ASP -


i have page makes file html download piece of code:

response.contenttype = "application/vnd.ms-excel" response.addheader "content-disposition", "attachment;filename=teste.xls" 

is there way using classic asp save file specific folder in server instead making client download it?

you can save file on server in classic asp using scripting.filesystemobject object. here's example making text file:

<% dim fs,f set fs=server.createobject("scripting.filesystemobject")  set f=fs.createtextfile("c:\test.txt",true) f.write("hello world!") f.write("how today?") f.close set f=nothing set fs=nothing %> 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -