Last post Sep 10, 2007 06:48 PM by HS2k
Aug 26, 2007 09:40 AM|sbudlong|LINK
How does the "Manage" link appear for an administrator? It doesn't show up for anonymous users or authenticated users("friends" I suppose). I've created two additional sitemaps, in addition to the web.sitemap, and I placed these between <asp:loginview> tags.
Works fine. I just want to know how the "Manage" link works. I haven't found out what controls that. I'm assuming that a user logged in as an administrator sees the web.sitemap by default. But where is this set?
Sep 10, 2007 01:20 PM|BluesPlayer|LINK
A common security requirement for Web sites is to allow only some members or other authenticated users to see certain pages.
ASP.NET role management provides a way to restrict access to Web files based on security roles.
Site-map security trimming provides a way to hide navigational links in a site map, also based on security roles.
Ensure this code is entered in the web.config file *BEFORE* you close the system.web tag.
Sep 10, 2007 02:19 PM|sbudlong|LINK
Bluesplayer, thank you very much for this reply. I'll look into "Site Map security trimming" and see how I can show/hide navigational links from different kinds of authenticated or unauthenticated visitors.
Do you listen to recordings of Robert Johnson? And other original blues players -- Muddy Waters, John Lee Hooker, Bessie Smith, and so on?
Sep 10, 2007 04:37 PM|BluesPlayer|LINK
You're very welcome.
RE: recordings, yes I love listening to the blues and I also play percussion and bluesharp (harmonica)
Sep 10, 2007 06:48 PM|HS2k|LINK
What's displayed in the top navigation menu is determined by restrictions set on the location path in web.config
<siteMapNode title="Manage" url="Admin/Albums.aspx" >
<siteMapNode title="Photos" url="Admin/Photos.aspx" >
<siteMapNode title="Details" url="Admin/Details.aspx" />
<siteMapNode title="Guest Book" url="MyFriends/GuestBook.aspx" >
There could be a better way out there, but this is how I would go about it.
I hope that explains it.