Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有三个 DNN 皮肤,但它们很相似。不同之处在于 ContentPane 的样式。有什么方法可以创建一些带有页眉和页脚的“主”皮肤以及具有不同样式的内容窗格的三个子皮肤?因为创建具有 99% 相同标记的皮肤是一个坏主意,唯一的区别是内容窗格样式。
您可以将页眉/页脚部分抽象到它们自己的 ASCX 文件中(引用主要 SKIN 文件中的那些),然后将文件的窗格部分作为不同的部分。
另一种选择是拥有一个皮肤,具有三个不同的窗格,并指示您的用户在哪种情况下应该使用哪个窗格。