问题描述
有关一个ASP.Net MVC应用程序,我很感兴趣,在数据库中存储的一些看法和/或部分意见,使一些半技术用户可以做一些基本观点的逻辑。有没有人有从经验中任何提示或经验上这样做呢?
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?
我知道大约一年前。他用了IronRuby的脚本自己的看法,(这将是对我罚款)。他创造了一个快速验证的概念,但我找不到话题的任何其他信息。
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.
任何想法,思想,技巧等将AP preciated。
Any ideas, thoughts, tips, etc would be appreciated.
谢谢!
推荐答案
和ASP.NET的托管环境中注册。经典的WebForms也有效。
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.
这篇关于在数据库中存储ASP.Net MVC视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!