Solved

Get list of available themes in App_Themes folder

Posted on 2008-10-27
1
374 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

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

696 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