简体   繁体   中英

How can i get folder path in asp.net mvc app by browsing folders

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM