I have an asp.net (c#) application that I’m transforming to utilize “visual inheritance” by using the following template http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=27157AEF-7A64-466A-98F6-D93AF78C1547
as an example. The concept is simple, but too complex to explain here.
I have the PageBase and SamplePageBase implemented. My issue is that I’m utilizing the IE TreeView control and cannot get it to remain on each page with the appropriate node selected.
I’ve tried only loading the TreeView once on the initial entry into the application and not subsequent requests. This causes the TreeView to only be visible on that initial page.
Also, I’ve tried loading the TreeView on each page request and postback. Doing this shows the TreeView, but it is collapsed with the first node selected each time I load a new page.
I’ve tried catching the SelectedIndexChange event (to store and reset the selected node), but this is only firing when I expand or contract a node. Clicking a child node results in a redirect to a new page with the URL being stored as a node attribute, but the SelectedIndexChange does not fire.
Feel free to request code examples or ask questions. Thank you!