gpt4 book ai didi

asp.net - 剑道 TabStrip : Rendering Action into tab in MVC 4

转载 作者:行者123 更新时间:2023-12-02 12:21:50 26 4
gpt4 key购买 nike

我一直在尝试将 Action @Html.RenderAction(...) 渲染到 Kendo 选项卡条的 .Text() 中,但没有成功。

有没有办法将完整的操作呈现到选项卡中?

最佳答案

我找到了:

@(Html.Kendo().TabStrip()
.Name("tabMain")
.Items(items =>
{
items.Add()
.Text("My Tab Title")
.Content(Html.Action("Index","MyChildController").ToString());
})
)

技巧是在 Html.Action 调用中调用 .ToString

关于asp.net - 剑道 TabStrip : Rendering Action into tab in MVC 4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15643401/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com