动态设置局部视图的视图基类型?
是否可以动态设置局部视图的基本类型 看法?
我正在使用自定义 IViewFolder
进行大量动态页面生成 和 IViewFile
实现,并且需要设置特定的基本类型 对于某些观点......注入正确的块不是问题,我 只需要知道要注入什么块。
我已经尝试过:
<use pageBaseType=”MyCustomViewType” />
在部分视图的顶部,但它没有被拾取......是吗? 正确的语法?甚至可能吗...?
预先感谢,
基隆
Is it possible to dynamically set the view base type for a partial
view?
I'm doing a lot of dynamic page generation, using custom IViewFolder
and IViewFile
implementations, and need to set a specific base type
for certain views...it's not a problem injecting the correct block, I
just need to know what block to inject.
I've tried:
<use pageBaseType=”MyCustomViewType” />
at the top of the partial view, but it doesn't get picked up...is that
the right syntax? Is it even possible...?
Thanks in advance,
Kieron
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,答案是否定的!
Unfortunately, the answer to this was no!