Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

Is there any way to browse the folder location on a button click in Asp.Net?
Of course, we have the controls called fileUploader and AsyncFileUploader.
But for some reason, i cannot use both here.

I have a button and on a button click the select a file should be enabled and pass the selected file path to a textbox.

Please advise.

Thanks.
Posted
Comments
[no name] 30-Jul-15 7:26am    
http://www.bing.com/search?q=asp.net+browse+folder
DPM20 30-Jul-15 7:39am    
Thank you. Did googling already to find this but couldn't get the seeking answer.

1 solution

Hi I my knowledge there is no way to browse the local machine folder in Asp.net(website),try in Silverlight.

In fileUploader and AsyncFileUploader u can browse the file only cant choose folder and from some browser can get filepath using file browser control,i think form IE cant get file path not sure.So in Silverlight can get folder bcz already i did,but win XP ,vista,windows server 2003 not supporting Silverlight.
 
Share this answer
 
v2
Comments
DPM20 30-Jul-15 7:38am    
Thank you Aravind for your quick revert. But i can't deviate from asp.net to silverlight as per the project specific.
Aravindba 30-Jul-15 7:48am    
I am not ask to change ur project asp to silver light,just create file browse control in silver light and embed in ur asp.net
http://dotnetslackers.com/articles/silverlight/Folder-Dialog-in-Silverlight-4.aspx
just find how to embed silver light and how to pass value from SL to ASP and ASP to SL

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