![]() |
||||||||||||||||||||||||||||||||||||
|
UltimateSitemapPath is a custom control for ASP.NET to generate a navigation path (breadcrumb) by matching the current web page to the one inside the sitemap source. It doesn't have a visual designer itself since it is supposed to be a small server control to be used on all web pages rather than only one page as in the case of UltimateSitemap control, which renders a sitemap. Therefore you can either use UltimateSitemapDesigner inside the UltimateSitemap control to generate the sitemap XML file or the UltimateSitemap table in the database, or create them manually. Note that both controls can share the same sitemap XML file or database unless you want to point them to different sources. You can drag and drop the control like any other web control (server control) onto your Web page in VS.NET, and provide a source for it. You have four options to set the source of your sitemap. 1. Set SitemapSource to an XML file at design-time or run-time: You can create an XML file either by using UltimateSitemapDesigner as your visual designer tool, or by manually authoring the file with the help of IntelliSense. 2. Set SitemapSourceXml to an XML string at run-time: You can create your sitemap XML string programmatically by using XMLDocument object model. Sample code is provided with download. 3. Set DatabaseConnStr and DatabaseSitemapID at design-time or run-time: You can create a data source (in SQL server, Access or any other database by providing the connection string) either by using UltimateSitemapDesigner , or by manually filling the UltimateSitemap table in your database. 4. Set DataSource to a dataset at run-time: You can create a dataset from your data source easily by using ADO.NET. Sample code is provided with download. |
||||||||||||||||||||||||||||||||||||
All public properties except SitemapSourceXml and DataSource can
be changed at design-time or run-time. SitemapSourceXml and DataSource can be
changed at run-time only.
Your sitemap will be automatically located at the position where you place the UltimateSitemap control on your web page. If you put the control into a table cell it will be positioned relatively. Therefore you can achieve both relative and absolute positioning by just dragging and dropping the control inside or outside a table. Sitemap XML file has a simple hierarchy of siteMapNode elements. You can find the XML schema in UltimateSitemapSource.xsd. You can find the siteMapNode attributes in UltimateSitemapDesigner. Here is the list of public properties that can be changed at design-time or run-time: |
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
| © 2002-2009 Karamasoft LLC. All rights reserved. | ||||||||||||||||||||||||||||||||||||