Hi all .
I’m new to ASP and ASP 2.0 so please be patience.
I’m reading Marco Bellinaso’s book (ASP 2.0 website programming) and found something that isn’t working as I expect it to work.
I’m talking about the site map data source control – the one that shows the links to the “main” pages / nodes of the site.
From the book (and the link from MSDN - http://msdn2.microsoft.com/en-us/library/ms178428.aspx
) I understand that if one specifies the roles attribute inside the siteMapNode in the site map , this roles list will determine if this node will be visible to the user according to its roles list (if the user is just a member , he can’t see the admin link in the book’s example and so on).
In my web site (where I try to follow the book) this isn’t working. Changing the example from the book result the same results (if I allow all users to the admin folder via its web config the link is visible although the roles list in the site map is limited). It looks like the visibility of the link is NOT connected to the roles attribute on the map node but to the web config of the specific folder.
What am I doing wrong?
I would like to “help” the map provider so it will not have to check the actual page to set the link visibility.
I hope I was clear enough.
If I’m asking the question is the wrong forum please let me know.