Is there a clear programmatic way to determine which themes are installed in an ASP.NET application?
I have several ASP.NET applications that use a cookie called "Theme" to set the theme in a PreInit event. The problem is that when using localhost in my development environment, the theme name for one application is displayed in another application and thus throws an exception:
The theme "XYZ" cannot be found in application directories or global themes.
It seemed to me that I could just check what themes my application has, first of all, to check if what I'm going to install is really not looking at the contents of the App_Themes folder.
source
share