Put linq to sql results into hierarchical structure for using in a un-ordered list ( for jquery tree )

后端 未结 4 1270
情话喂你
情话喂你 2021-02-11 02:32

I have 5 tables in a L2S Classes dbml : Global >> Categories >> Sub-Category >> Item >> Item Data. I want to be able to navigate from the Global table down a tree like structure

4条回答
  •  灰色年华
    2021-02-11 02:47

    Have you tried Nested Listviews? I have implemented this solution in several pages. I use ObjectDataSources instead of LinqDataSources directly to keep my data logic separate, but the nested EntitySets work beautifully.

提交回复
热议问题