ASP.NET 2.0: skin files only work when placed in the root folder of the theme?

I found that skin files only work if they are placed in the root themes folder in the App_Themes folder.

For example, if you have 2 themes in the App_Themes folder, you cannot add another folder to the theme folder and put a separate skin file in this subfolder.

This is not much of a limitation, but it will give you more flexibility to further customize the application.

Can anyone shed some light on why this is happening, as in 2.0?

+3
source share
3 answers

Does your skin file have a .skin extension? I always call them theme.skin and give them the same name as the folder. For example, in Theme col2 folder

App_Themes \ col2 and contains css and col2.skin

Microsoft - :

+1

ASP.Net "".

- . , .skin:

<asp:DataList runat="server" SkinID="DataListColor" Width="100%">
  <ItemStyle BackColor="Blue" ForeColor="Red" />
</asp:DataList>

<asp:DataList runat="server" SkinID="DataListSmall" Width="50%">
</asp:DataList>

, , , - datalist.

+1

The only way to change this behavior is through VirtualPathProvider - something like: http://www.neovolve.com/page/ASPNet-Virtual-Theme-Provider-10.aspx

0
source

Source: https://habr.com/ru/post/1696906/


All Articles