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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -