Hey Kate
Thanks for your example.
My data is not presentet the way you suggest. I have my data layer in a seperate project. My DB project, where I ex. have a Hierachy Service, that return a List<Hierachy>.
So what should I do then ? Do I need the LinqDataSource ? I just thought setting the treeview datasource to bookHierachy was enough ?
My treeview is rendered just fine, it's just my OnNodeClick event that don't fire ?
<asp:LinqDataSource ID="LinqDataSource1" runat="server" EntityTypeName="" ContextTypeName="DataClassesDataContext"
TableName="Links">
</asp:LinqDataSource>
List<DB.Hierarchy> bookHierarchy = new List<DB.Hierarchy>();
bookHierarchy = DB.HierarchyService.HierarchyFullListFromParentPath("Emner");
Thanks
Jan