Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Using Site Maps - ASP.NET

RSS
Modified on Sat, Sep 19, 2009, 8:17 PM by Administrator Categorized as (drafts), ASP·NET Web Forms
This page is a Draft. Its content is not complete and might contain errors.

Configuring a Site Map Provider

<configuration>
  <system.web>
    <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
      <providers>
        <add name="XmlSiteMapProvider"
         description="Default SiteMap provider." 
          type="System.Web.XmlSiteMapProvider "
          siteMapFile="Web.sitemap" 
           securityTrimmingEnabled ="true"
          />
      </providers>
    </siteMap>
  </system.web>
</configuration>

Sample Sitemap File

The following is a sample web.sitemap file

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  <siteMapNode url="default.aspx" title="Home"  description="[Home Page]" roles="*">
    <siteMapNode url="signUp.aspx" title="Sign Up for an Account"/>
    <siteMapNode url="" title="My Account"  description="[My Account]" />
    <siteMapNode url="" title="Manage Users"  description="[Manage Users]"/>
    <siteMapNode url="" title="Manage Events"  description="[Manage Events]"/>
    <siteMapNode url="" title="Manage Locations"  description="[Manage Locations]"/>
    <siteMapNode url="" title="Reports"  description="[Reports]">
      <siteMapNode url="" title="Event Roster" description="[Event Roster]"/>
    </siteMapNode>
  </siteMapNode>
</siteMap>

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.