I have a sitemap that has a link for when a user is not logged in, but when they do login, the link should change, for example, nonmember.aspx should change to member.aspx. This sitemap is tied to an asp:menu. Does anyone know how to do this?
Share
A simple solution is to have two nodes in your sitemap.
I believe you can set this up quite simply.
The end result is the same as changing the link but it’s easier to maintain.
To add to this:
So, you set up a rule that denies access to the “
HideForMembers” role to authenticated users. It’s something like that. ASP.NET will take the first rule it finds a match, so you should be able to accomplish it this way.Otherwise, you could do a
Menu_OnDataBoundand look for the node:source