Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
I am new to asp.net.

I am developing a web-application using asp.net and c#. In that I want to export some data to local host machine in ".txt" file.

Any one knows file handling on web server.
Posted

1 solution

You can create a folder physically inside your virtual folder and save to that location using Server.MapPath(relative path of your file).

For uploading a file you have some controls in ASP.Net. go through this link. It will help you achieve this.

http://www.tutorialspoint.com/asp.net/asp.net_file_uploading.htm
 
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