在视图中使用 MVC Contrib FluentHtml
如果我理解正确的话,要在我的视图中使用 MVC Contrib 的 FluentHtml,我需要将视图更改为从 MvcContrib.FluentHtml.ModelViewPage 而不是 System.Web.Mvc.ViewPage 继承。
如果这样做,我会失去 System.Web.Mvc.ViewPage 提供的任何功能吗?
If I understand things correctly, to use MVC Contrib's FluentHtml in my Views, I need to change my Views to inherit from MvcContrib.FluentHtml.ModelViewPage instead of System.Web.Mvc.ViewPage.
Will I lose any functionality provided by System.Web.Mvc.ViewPage if I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不这么认为,因为 ModelViewPage 继承自 ViewPage 因此将包含所有功能。我刚刚快速查看了源代码,并且没有重写的基成员,因此您应该拥有基类中的所有内容完整且可用。
I don't think so, as ModelViewPage inherits from ViewPage so will contain all the functionality. I just had a quick look at the source and there's no overriden base members so you should have everything from the base class intact and available.
你不会失去任何东西。 MvcContrib.FluentHtml.ModelViewPage;派生自 System.Web.Mvc.ViewPage。
You will not lose anything. MvcContrib.FluentHtml.ModelViewPage<T> derives from System.Web.Mvc.ViewPage<T>.