Change Theme Settings
Change Theme Settings
Show All Themes

Data Binding


This demo illustrates the binding of an ASPxSiteMapControl to a data source. The ASPxSiteMapControl supports standard data binding options. In this instance any object which implements the IHierarchicalEnumerable or IHierarchicalDataSource interface (e.g. SiteMapDataSource, XmlDataSource) may be used as a data source for this control.

In this demo, the site map control is bound to a data source of type ASPxSiteMapDataSource. The ASPxSiteMapDataSource is connected with a specific SiteMapProvider. This provider is registered in the web.config file where it's pointed to the file from which to obtain the site map data. Note that the ASPxSiteMapDataSource extends the functionality of a standard site map data source component by allowing the site map data to be loaded from a specific file without assigning a site map provider to the SiteMapProvider property.

        <add name="ProductsWebSiteProvider" type="System.Web.XmlSiteMapProvider"
        <add name="MenuSiteMapProvider" type="System.Web.XmlSiteMapProvider"