我正在开发一个需要能够支持两个或更多外观的站点,在运行时可以变换.我希望能够通过CSS开关来处理更改,但看起来我需要为每个设计使用不同的母版页.
那么,在运行时设置母版页的最佳方法是什么? Page.MasterPageFile只能在Page.OnPreInit事件中设置.看起来解决方案是让我的所有页面都从一个处理PreInit事件的公共基础继承,或者使用HttpModule这样做.
任何建议?
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。