Click here to Skip to main content
16,008,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have developed on web application in Asp.net. i want to export the records to excel file.

Here i want choose the file path for the export.

Is there any file choose control in asp.net.

If any knows ., can you please suggest the solution.

Thanks
Dhanasekaran Murugesan
Posted

1 solution

You can only write the file to the client browser and the user will select to open or save as, and if they select to "save as" they'll be given a path dialogue to select where to save.

If you mean to save on the server you'd need to use the System.IO namespace to build up a list of directories etc on your server and give the client a way of choosing. If you google for "asp.net server file browser" you'll probably find sample code, but you need to look at classes like System.IO.Directory etc.
 
Share this answer
 

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