Home » Category » Web Forms

Web Forms: HtmlInputFile to select directory, not file

102| Sat, 05 Jan 2008 20:05:00 GMT| zee_rocks| Comments (4)

I need to display all the files (*.txt) in a specific directory that is selected by the user

Is there a control that allows a user to browse just the computer's directories like the HtmlInputFile control except that it stops at directory level instead of needing to select a specific file?

Keywords & Tags: htmlinputfile, select, directory, file, web, forms

URL: http://dotnet.itags.org/web-forms/134950/
 
«« Prev - Next »» 4 helpful answers below.

Here's a custom C# control that will let you accomplish this.

http://www.codeproject.com/cs/miscctrl/mkfolderbrowser.asp

freakyuno | Sat, 05 Jan 2008 20:07:00 GMT |

thanks for the link! :)

so that's a 'no'? thereisn't a control like HtmlInputFile that browses through a computer directory and returns just the directories instead of the files?

Freakyuno:

Here's a custom C# control that will let you accomplish this.

http://www.codeproject.com/cs/miscctrl/mkfolderbrowser.asp

zee_rocks | Sat, 05 Jan 2008 20:08:00 GMT |

There's none that I know of. I did a little research and found a few examples of activex objects, and one or two references to using windows Folder browser by implementing win forms using a shell object, but nothing that looked ideal.

freakyuno | Sat, 05 Jan 2008 20:09:00 GMT |

bummer...Sad

thanks a lot though!

zee_rocks | Sat, 05 Jan 2008 20:10:00 GMT |

Web Forms Hot Answers

Web Forms New questions

Web Forms Related Categories