I have the Sitemap for Menu.like

<sitemap url="" title="Admin" roles="admin">
<sitemap url="~/Rooms.aspx" title="Rooms" roles="admin">
.........................
.........................
</sitemap>

Now When I am Login with customer then Rooms.aspx and others are not seen but parent node "admin" is seen which not required then what to do "admin" is seen only for admin

<location path="admin">
<system.web>
<authorization>
<allow roles="admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>

This is used to see admin menu for admin

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.