动态设置局部视图的视图基类型?

发布于 2024-09-09 05:28:43 字数 330 浏览 1 评论 0原文

是否可以动态设置局部视图的基本类型 看法?

我正在使用自定义 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 技术交流群。

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

发布评论

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

评论(1

神魇的王 2024-09-16 05:28:43

不幸的是,答案是否定的!

Unfortunately, the answer to this was no!

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