Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
i was created on application in asp.net. on button click event i want find a path where i stored a backup of database. please share me Code asap

What I have tried:

i tried MSDN but it not solving by me.
Posted
Updated 11-Oct-16 21:51pm

You can use FileUpload control.
Check following links for further help-
FileUpload Class (System.Web.UI.WebControls)[^]
ASP.NET - File Uploading[^]
File Upload with ASP.NET[^]

Please let me know if your requirement is different than this.
Thanks :)
 
Share this answer
 
v2
For the client computer you can't do this, the only browse dialog is for uploading files and the path to the file is not sent to the server, only the filename.

For the server you can't do this either as the browser has no way of communicating with the server's file system. You'd have to implement your own file browser, if you google "asp.net server file browser" you'll probably find sample code.
 
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