在视图中使用 MVC Contrib FluentHtml

发布于 2024-08-09 18:31:37 字数 183 浏览 11 评论 0原文

如果我理解正确的话,要在我的视图中使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

燃情 2024-08-16 18:31:37

我不这么认为,因为 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.

一城柳絮吹成雪 2024-08-16 18:31:37

你不会失去任何东西。 MvcContrib.FluentHtml.ModelViewPage;派生自 System.Web.Mvc.ViewPage

You will not lose anything. MvcContrib.FluentHtml.ModelViewPage<T> derives from System.Web.Mvc.ViewPage<T>.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文