Defining the structure of the site, can be done with sitemap, that can be stored in xml file you can build your own, or create navigation controls.
xmlsitemapprovide
sitemapdatasource
default xml file is web.sitemap, or can use other sources
you can create your own from defiving from the SiteMapProvider, StaticSiteMapProvider you would bind a menu or tree view to the sitemap file.
There is a difference puting a slash before a relative url implies this slash is the root folder of the application you can use the ~ to the root directory of the application, because the relative would be affected by location of the master page since it's the containter.
Navigation features:
SiteMap can mess up layout if you go deep, configure the max level properties, set the staticdisplaylevel property
A big part of styling navigation is to format those controls, there is autoformat property with presets and preview, msdn is a good one.
The menu control have alot of static and dynamic properties, the breadcrumb control, you can tell the menu to fly out horizontal or vertical, change the seperator for each menu; there are templates for the breadcrub control by default menus will never match the style of the website, but can be configured to anything, there is alot of style customization.
xmlsitemapprovide
sitemapdatasource
default xml file is web.sitemap, or can use other sources
you can create your own from defiving from the SiteMapProvider, StaticSiteMapProvider you would bind a menu or tree view to the sitemap file.
There is a difference puting a slash before a relative url implies this slash is the root folder of the application you can use the ~ to the root directory of the application, because the relative would be affected by location of the master page since it's the containter.
Navigation features:
- create a sitemap file, containes siteMapNode elements, contains real and virtual page
- sitemap file integrates localization
- navigation controls, available from toolbox->Navigation siteMapNode attributes, title, url, and desctiption(tooltip)
SiteMap can mess up layout if you go deep, configure the max level properties, set the staticdisplaylevel property
A big part of styling navigation is to format those controls, there is autoformat property with presets and preview, msdn is a good one.
The menu control have alot of static and dynamic properties, the breadcrumb control, you can tell the menu to fly out horizontal or vertical, change the seperator for each menu; there are templates for the breadcrub control by default menus will never match the style of the website, but can be configured to anything, there is alot of style customization.
Comments
Post a Comment