PageNode and PageSitenode
Hi,
I'm just working on a menu control and I'm a bit confused in a couple of places.
1) What is the difference between PageNode and PageSiteNode?
2) It seems it is possible to use PageNode/PageSiteNode and/or the traditional MS SiteMap/SiteMapNode - is this just to make it easier for developers to stick with what they know? I'm unsure which method I should be using in certain circumstances?
Thanks
Higgsy
Hi Higgsy,
1.
PageSiteNode- represents SiteMap for pages. This class inherits from Asp.Net SiteMapNode
PageNode -holds an instance of a page. This class implements only Sitefinity's specific interfaces.
2.
It depends on the case. For instance if you bind a navigation control to SiteMapDataSouce you can call
var pageNode = e.Node as PageSiteNode;
All the best,
Ivan Dimitrov
the Telerik team