在数据库中存储 ASP.Net MVC 视图
对于 ASP.Net MVC 应用程序,我有兴趣在数据库中存储一些视图和/或部分视图,以便一些半技术用户可以执行一些基本的视图逻辑。有人对此有任何建议或经验教训吗?
我知道 Phil Haack 就此写了一篇博客文章一年前。他使用 IronRuby 来编写他的观点(这对我来说很好)。他创建了一个快速的概念验证,但我找不到有关该主题的任何其他信息。
任何想法、想法、提示等将不胜感激。
谢谢!
For an ASP.Net MVC application, I'm interested in storing some views and/or partial views in the database so that a few semi-technical users can do some basic view logic. Does anyone have any tips or lessons from experience on doing this?
I know Phil Haack wrote a blog post on this about a year ago. He used IronRuby for scripting his views, (which would be fine for me). He created a quick proof-of-concept, but I can't find any other information on the topic.
Any ideas, thoughts, tips, etc would be appreciated.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
给你。您所需要的只是编写一个自定义 VirtualPathProvider 并在 ASP.NET 托管环境中注册它。也适用于经典的 WebForm。
Here you go. All that you need is to write a custom VirtualPathProvider and register it within the ASP.NET hosting environment. Works also with classic WebForms.