【发布时间】:2019-12-12 11:29:46
【问题描述】:
我想实现如下结构的视图组件。
ViewComponents
-> Modal
---> ModalViewComponent.cs
---> Modal1ViewComponent.cs
---> Modal2ViewComponent.cs
我的视图结构
Shared
-> Components
---> Modal
------> Modal.cshtml
------> Modal1.cshtml
------> Modal2.cshtml
ModalViewComponent 是我的基本视图组件,我从中调用基于相同模型的其他视图组件。
我想将我所有的模态视图放在Modal 文件夹中,派生视图组件解析为具有相同名称的视图。
【问题讨论】:
标签: asp.net-core asp.net-core-viewcomponent