By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,302 Members | 1,788 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,302 IT Pros & Developers. It's quick & easy.

Help! Browse folder option in (C#) - The code does not wor

P: n/a
I am trying to browse folders through the following piece of code.
Please let me know if there is any kind of setting to get this working
using shell32.dll;
Shell32.ShellClass shl = new Shell32.ShellClass();
Shell32.Folder2 fld = (Shell32.Folder2)shl.BrowseForFolder(0, "Show Folder",
0, System.Reflection.Missing.Value);
txtFolderName.Text = fld.Self.Path ;

Thanks in advance.



Jul 11 '08 #1
Share this Question
Share on Google+
1 Reply

P: n/a
The C# side of ASP.NET runs at the server, but I'm guessing you want this to
appear at the client - in which case you need to limit yourself to [d]html
and javascript etc. Normally this means an <input type="file"/>. You can do
more, but it involves running something addition at the client - such as an
ActiveX control or Silverlight (which actually has pretty good support for
secure file browsing, from what I've seen...).

Jul 11 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.