I have a ASP.NET mvc app and I have a text box and a button. When I click the button I need to get the browse option so that I can browse all folders in my system, after that if I select the folder, the folder path should be displayed in my Textbox like C:/Users/myFolder/ in textbox.. also when select an UCN path.
I did not find the way to do this !
It would be much appreciated if you can help me on this. Thanks for replying
CodePudding user response:
ASP.NET is a web application you can not get your system folder paths. The concept in ASP.NET is to upload the designated file(s) from your system to web server via browse local system. As for folder path if you are developing desktop application using WPF then you can use the .NET FolderBrowserDialog library to browse your system and get the folder path.