开发者

How to write recursive view in MVC cshtml?

开发者 https://www.devze.com 2023-03-14 14:02 出处:网络
Is it possible to write a cascading, recursive \"tree view\" (e.g. a li in ul, ul in li, etc) in pure cshtml, without moving the whole thin开发者_JAVA百科g to a partial view and calling @Html.Partial(

Is it possible to write a cascading, recursive "tree view" (e.g. a li in ul, ul in li, etc) in pure cshtml, without moving the whole thin开发者_JAVA百科g to a partial view and calling @Html.Partial("itself",Model.Children) from the partial view?

Something like an inline recursive function, or section...

0

精彩评论

暂无评论...
验证码 换一张
取 消