ASP.NET 3.5 C#: Best way to create and display dynamic menu with submenus

前端 未结 3 1550
野的像风
野的像风 2021-01-26 06:08

I usually just create a datatable with one repeater and have all this html in my codebehind. I have not found an easy method for adding a submenu dynamically. Does anyone have

3条回答
  •  逝去的感伤
    2021-01-26 06:39

    Normally, I would use a server control for a menu, that would add copies of itself for submenus, making it dynamically generated. However, consider caching it, as it is not quick to generate.

提交回复
热议问题