Click here to Skip to main content
15,914,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to be able to select a location (folder &
file name) to save data when I click a button on a web
form. Obviously I can't use a "Save Dialog" control on a
Web Form. How do I do this in asp.net?
Posted

I would do something like save their session ID in a cookie, and use the session ID as the name of the file. That way, they don't have to be bothered with naming a file at all. They merely have to click the Save button.
 
Share this answer
 
Also remember that any folder/filename you write to from your server side code will be on the server. You cannot use ASP.NET to write to the client machine. You can use other techniques like client side scripting, ActiveX etc. to write to certain security approved areas on the client machine (look up isolated storage for an example).
 
Share this answer
 
v2

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