Hello,
I'm trying to create a menu without using a database table. and create from the site map.
My problem is to hide or show items depending on the user.
For example:
-> if aren't logged not show link for Profile (<siteMapNode url="~/MyProfile.aspx" title="Profile" description="Profile")
-> For example if the user is the admin group, show manager menu.
Is there any way to update the menu depending on the user?
//My sitemap file
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode url="~/" title="Principal" description="Principal">
<siteMapNode url="~/Default.aspx" title="Principal" description="Principal" />
<siteMapNode url ...
Go to the complete details ...