Can I create a default theme for an ASP.NET website?
For example, if I had a theme called "Default"
and I selected a theme called "NewTheme"
and I referenced a file that does not exist in "NewTheme"
but exists in the theme "Default"
, for example
<asp:image id="img" runat="server" ImageUrl="~/Images/image.jpg" />
Could this be taken from "/App_Themes/Default/Images/image.jpg"
if it does not exist in "/App_Themes/NewTheme/Images/image.jpg"
?
Also, if the CSS class did not exist in "NewTheme", but it was in "Default," then can it take "Default"? In fact, I think it would be better if he first took all the styles by default, and then redefined any that NewTheme encountered.
I know that global links work similarly to this, because if ive chose the localization "es"
, and the key does not exist in the webreference.resx.es
file, but it works in webreference.resx
, then it takes a value from there.
I think this would be important functionality for ASP.NET themes, as I can imagine different themes only having certain images, and some styles have changed. I can’t imagine that every image and every style is always completely different for each theme. And therefore, without this functionality, it will be a case of duplication of styles / images that I am not a fan of (for obvious reasons!).
source share