Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Explorer-type browsing 1

Status
Not open for further replies.

vbajock

Programmer
Joined
Jun 8, 2001
Messages
1,921
Location
US
I am writing an application that requires the user to browse a list of files in a folder, and select a file. The only thing I need to happen is for the name and path of the selected file to be returned to my application - it doesn't have to actually open it or do anything with it, I just need to capture the path information - either as a virtual folder or file system folder. Is there a fairly straightforward way to do this, or perhaps some control that will do it?

Thanks in advance for your help!
 
Where would the file be? On the server or the users machine?

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
On one of many servers, not necessarily the web server, but it could be if that was the only choice. This is an Intranet app, and the users are all on the same local file system. The files could reside on a mapped drive on the Web server, say we dedicated a folder to it on server Y and made it drive Z on the web server, for example. Ideally the users would see a screen listing the files, he would click on it somehow to highlight, then say OK to confirm it, and the event would return the filename he clicked on.
 
IN that case you have two options really:

1) Use a custom control. Some examples are:


2) Create one yourself. An example of this using various methods from the System.IO class is at:


There is also a TreeView control that will come with version 2.0 of the Framework but you can download the IE WebControls to get an example of what it will be like from:


Hope this helps.

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Dude, you are the man!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top