如何更改“App_Themes” ASP.Net 中的目录?
我正在将 .Net 应用程序从 .net 1.1 升级到 3.5。所有主题都存储在名为 Themes
的文件夹中,新的 .Net 3.5 框架希望将此信息存储在名为 App_Themes
的文件夹中。将所有内容移至 App_Themes
文件夹对我来说将是一次重大重构。
所以我想问是否有办法告诉.Net在寻找主题时使用哪个文件夹?如何将默认目录从 App_Themes
更改为 Themes
?
I'm upgrading a .Net application from .net 1.1 to 3.5. All the themes are stored in a folder called Themes
, the new .Net 3.5 framework wants this information in a folder called App_Themes
. It will be a major refactoring for me to move everything to a App_Themes
folder.
So I want to ask if there is a way to tell .Net what folder to use when looking for themes? How can I change the default directory from App_Themes
to Themes
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的记忆有点模糊,但我似乎不记得 .NET 1.1 具有主题支持,该支持已内置到 2.0 的“App_Themes”文件夹中。因此,我认为您可以将内容保留在主题文件夹中,并继续使用现有的任何现有的家庭滚动主题管道,如果您愿意/需要的话,可以过渡到使用本机 2.0+ 主题。
My memory is a bit foggy, but I don't seem to recall .NET 1.1 having the theming support which got built into 2.0 in the "App_Themes" folder. So I think you can just leave things in your themes folder and keep using whatever existing home-rolled theme plumbing you've got and transition to using the native 2.0+ theming if you want/need to.