如何让 HTML.Partial 使用 T4MVC 常量?
我已经开始使用 T4MVC,并试图弄清楚如何将 T4MVC 与 PartialViews 结合使用。 我目前
@Html.Partial("LocationGrid", Model.Locations)
想使用
@Html.Partial(MVC.Client.Views.LocationGrid, Model.Location)
,但 MVC.Client.Views.LocationGrid 返回完整路径而不是名称
I've started using T4MVC and I'm trying to figure out how use T4MVC with PartialViews.
I currently have
@Html.Partial("LocationGrid", Model.Locations)
I would like to use
@Html.Partial(MVC.Client.Views.LocationGrid, Model.Location)
but MVC.Client.Views.LocationGrid returns the full path not the name
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尽管它返回完整路径,但它工作得很好,因为 MVC 旨在处理其中任何一个。
Even though it returns the full path, it works fine as MVC is designed to handle either.