Solved

how to get folder path in asp.net

Posted on 2008-10-17
1
893 Views
Last Modified: 2010-08-05
Hi,


I want to dispaly folder strucute in asp.net list control. For this i want to diplay the existing folders in the list box.
exmaple: If folder is "GROUP" located on the web server. i want to dispaly tree structure of "GROUP" strating with "GROUP and subfolders in "GROUP" etc.

Can you please suggerest how can i acheive this.

Thanks.
Ram,
0
Comment
Question by:ram27
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
TechTiger007 earned 250 total points
ID: 22744964
You can use

System.IO.Directory.GetDirectories(<Path>) - get list of directories inside a directory, and sub directories
System.IO.Directory.GetFiles(<path>) - get list of files inside a file

after getting this list you can construct the tree structure in your code

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question