Hi
I used the following link
http://aspsnippets.com/Articles/Using-ASPNet-Menu-control-with-example-in-C-and-VBNet.aspx
given by you
Thanks for that
I created new menu item 'Supervisor' in Web.sitemap.in the database table i created new role 'Supervisor' and assigned to employee
I created new folder 'supervisor' with Home1.aspx and given rights in web.config inside supervisor folder
as
<?xml version="1.0"?>
<configuration>
<system.web>
<authorization>
<allow roles="Supervisor"/>
<deny users="*"/>
</authorization>
</system.web>
</configuration>
in web.sitemap
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="Home" description="" roles ="*">
<siteMapNode url="~/Home.aspx" title="Home" description="Home Page" roles="*" />
<siteMapNode url="javascript:;" title="Admin" description="Admin Page" roles ="Administrator">
<siteMapNode url ="~/Admin/Users.aspx" title="Users" description="Users Page"></siteMapNode>
<siteMapNode url ="~/Admin/Reports.aspx" title="Reports" description="Reports Page"></siteMapNode>
</siteMapNode>
<siteMapNode url="~/Home1.aspx" title="Supervisor" description="Supervisor entry" roles="Supervisor" />
<siteMapNode url="~/Contact.aspx" title="Contact" description="Contact Us Page" roles="*" />
</siteMapNode>
</siteMap>
if employee login as 'admin' ' ,still getting 'supervisor' menu item.
I want to hide the supevisor menu because logged in user has admin rights only.
Please help me to fix the issue
Thanks
Chandran