Sitemap and roles

Sitemap are the great features on the asp.net for navigation features (treeview, menus, breadcrumb) on asp.net.  SiteMap datasource can be used to bind sitemap to the navigation controls like (Treeview, Menu, SiteMap Path).

Link roles and sitemap

Site map can be even interesting when used in conjunction with Roles features provided by Asp.net Membership provider. Roles can be linked with the sitemap links so that only to the roles can see the link.

For eg  If a user is logged and belongs to role “Accounting”, and only he can see the link Accounting , roles can be associated in sitemap.

Here is the example of sitemap xml file.

, , , , ,

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Share to Facebook Share to Twitter Stumble It Share on Tumblr Digg More...