c# - Allowing user to save contents of html list to text file -
i'm working on application (asp.net, webforms) generates list of outputs based on user input. want allow user save contents of said list text file, or possibly other filetypes such .csv. best way approach this? can done client-side javascript?
i think need use activex
or java applets
or silverlight
that. javascript not have access local file system.
another way go create file on server (physically or on fly) , make available download user. him save file dialog.
to on fly, create blank page (without markup. not ), set response.contenttype = 'text/plain'
, use response.write()
write content in page_load
.
Comments
Post a Comment