Reputation: 73918
I use ASP.NET C# in a Web Application Project (not web site).
I would like use ASP.NET Theme feature for my Web Application.
From the root of my project I am able to create a special folder App_Themes
Root/App_Themes --WORKS
but I need have App_Themes folder in a different level, in my case:
Root/Cms/App_Themes --DOES NOT WOEK
I notice that Visual Studio does not allow insert an App_Themes in a sub folder.
Any idea how to solve it?
Thanks for your time
Upvotes: 1
Views: 2693
Reputation: 2804
I found this article in which someone managed to do it in .Net 2.0.
I am not sure if it will still work on not.
http://www.joeaudette.com/overriding-the-location-for-app_themes.aspx
Upvotes: 0
Reputation: 18430
As mentioned Here on MSDN
You can keep your Web project's files in any folder structure that is convenient for your application. To make it easier to work with your application, ASP.NET reserves certain file and folder names that you can use for specific types of content
Theme="MyTheme"
it knows where to get the resources for the theme.
Its the way things are arranged.
If you want to have in another folder then create a "cms" folder as you want and Place your resources in some other folder name anything other then "App_Theme".
Similarly u cant use other Folders like App_Code , App_data , etc.
Upvotes: 2