Hi, can anyone help me with this: I've got a sitemap file in which I didn't set the URLs (so I'm not operating in navigation mode). I've declaratively included an SiteMapDataSource and a Treeview control like this:
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
<asp:Treeview ID="Treeview1" runat="server" DataSourceID="SiteMapDataSource1" onselectednodechanged="Treeview1_nodechange" />
The data of the sitemap is correctly bound to treeview, I can expand/collapse the treenodes, however the SelectedNodeChanged-Event never fires. I'm asking myself whether this event fires at all if one hooks up the treeview control in this declarative way. I found an example on the MSDN site in which they built a treeview by explicitely populating the nodes collection with a number of treenodes. By operating this way the event got fired. However I would like to declaratively hoo ...
Go to the complete details ...