Click here to Skip to main content
15,908,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have to export a table from mysql database to .csv format and store it in Client machine.
As per user path given in the textbox. but my code save the file in server side not in client machine. please any body know how to save the file at client side.

Thanks
parithi
Posted

1 solution

You cannot write to client's hard disk. You need to write the response to the client's browser which will ask the user to save the csv file. It depends upon client to save it or cancel it.


--Amit
 
Share this answer
 
Comments
parithi vr 15-May-13 0:55am    
Amit, thanks for the quick replay. how to response to the client's browser in c# have a sample code it will be helpful

Thanks

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