开发者

How to write recursive view in MVC cshtml?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜