WebForms 项目的 SparkViewEngine 替代方案
我非常喜欢sparkviewengine以html为主的结构。 是否有适用于 WebForms 项目的版本? 我想用它来生成仅演示文稿的 html(我的意思是,输出将不包含任何 html 输入控件)。 或者你能推荐一个替代方案吗? VS.Net 2010 Framework 4.0
感谢您的宝贵时间
I like the html dominated structure of the sparkviewengine very much.
Is there a version of it for WebForms projects?
I want to use it for generating presentation only html (I mean, the output will not contain any html input controls).
Or can you recommend an alternative?
VS.Net 2010 Framework 4.0
thanks for your time
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,传统的 ASP.NET WebForms 不允许开发人员切换视图引擎。只有一种,那就是 WebForms。只有 ASP.NET MVC 才出现了可互换视图引擎的概念,这为您提供了选择。
如果传统 ASP.NET 中的视图引擎是可切换的,那么您将能够使用 Spark 视图引擎,因为它已经理解
<%=blah %> 语法并委托渲染,但恐怕扩展点不存在......
更新
我偶然发现了 这篇博文 其中讨论了在 WebForms 项目上使用 Spark - 您可能会幸运地跟进...
希望有所帮助,
抢
Unfortunately, traditional ASP.NET WebForms does not allow the developer to switch out View Engines. There is only one and that's WebForms. Only with ASP.NET MVC did this concept of interchangeable view engines come about which gave you the option.
If the View Engine in traditional ASP.NET was switchable, then you would have been able to use the Spark view engine because it already understands the
<%=blah %>
syntax and delegates that rendering, but I'm afraid the extensibility points are just not there...Update
I stumbled across this blog post which talks about using Spark on the WebForms project - you may have some luck following up on that...
Hope that helps,
Rob