开发者

How to share a .skin theme file between themes in ASP.NET?

We have a legacy app with multiple asp.net themes. Each theme have a .skin file. Each skin file is almost identical except for some things. The files share a lot of similarities. I开发者_如何学Gos it possible to share a common .skin file across themes?


It is possible by creating a base theme skin file somewhere and then using an include in the specific theme skin files.

For instance, you would define all your controls in baseTheme.skin and put it somewhere on your server. Then, in your specific theme file (theme.skin), you would do an include back to your base.

<!-- #include file="../themeBase.skin" -->


Unfortunately it's not possible, skins are by design contained within a theme:

http://forums.asp.net/t/1268733.aspx/1

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜