将 ASP .NET 3.5 主题与嵌入式资源结合使用
我很好奇这是否可能。让我向您介绍一下我们如何使用主题以及为什么我们要使用单个资源 dll 来获取资源。
我们目前有一个 App_Themes 目录,其中包含我们的主要(并且只是目前)主题。称之为主主题。我们使用第三方控制套件 (Telerik),并在 MainTheme 目录下有几个自定义的 CSS 文件。我们的目录中有一个外观文件 (MainTheme.skin),其中包含一些控件的自定义属性。
我们正在尝试通过减少页面请求数量(目前约为 15 个左右)来优化网站的性能。我们确实启用了缓存。
我们试图将所有主题图像、样式和皮肤嵌入到单个 Resource.dll 中,从而限制我们的页面请求。我们遇到的问题是让 ASP .NET 使用 Resources.dll 作为其主要源,而不是 MainTheme 目录的根目录。
我们在寻找解决方案时一无所获。有人知道使用嵌入式资源和主题是否是相互排斥的功能或者可以将它们组合起来吗?
另外,如果您有任何其他建议,请随时添加。
谢谢! 丹尼尔
I'm curious if this is possible. Let me give you an idea of how we're using theming and why we want to use a single resource dll to fetch resources.
We currently have an App_Themes directory with our main (and only at the moment) theme. Call it MainTheme. We're using a third party control suite (Telerik) and have several customized CSS files under our MainTheme directory. We have a skin file (MainTheme.skin) in the directory that has a few customized attributes for some of our controls.
We're trying to optimize our site's performance by reducing the number of page requests (currently around 15 or so). We do have caching enabled.
We're trying to embed all our theme images, styles and skins into a single Resource.dll thus limiting our page requests. The problem we're running into is getting ASP .NET to use the Resources.dll as its primary source rather than the root of our MainTheme directory.
We've come up empty on searching for resolutions. Anyone know if using embedded resources and themes are a mutually exclusive feature or can they be combined?
Also if you have any other suggestions feel free to add.
Thanks!
Daniel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,创建主题 dll 不是 ASP.NET 的一部分,它是 Telerik 控件套件的一部分。我认为他们的网站会向您展示如何执行此操作并启用它。
我使用 DevExpress 控件,它们使用添加到 web.config 中的自定义 http 处理程序来执行此操作。
As far as I know creating a theme dll is not part of ASP.NET it is part of Telerik's suite of controls. I would think their site would show you how to do this and enable it.
I use DevExpress controls and they use a custom http handler added into the web.config to do this.