Solved

Get list of available themes in App_Themes folder

Posted on 2008-10-27
1
375 Views
Last Modified: 2013-12-17
Hello,

Is there a simple way to get a list of the top-level folders in the App_Themes folder in my .NET website?  Is the simplest way to just use the Directory class to list the directories or is there some collection of themes somewhere that I can access?

Basically, I need to make a dropdown of all the themes in the website.

Thanks!
0
Comment
Question by:sushik15
[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 6

Accepted Solution

by:
AmarIs26 earned 400 total points
ID: 22817557
The way i use is to use the Directory class to get a list of directories. As far as i know it is a reasonable way and beside you as a developer should not be putting anything in App_Themes folder which does not belong there. So its reasonsable to assume that all directories in the themes folder will be themes.
Also its best to get the list of themes and then stick the list in cache to avoid having to use the directory or directoryinfo classes.
0

Featured Post

Industry Leaders: 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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

687 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