Hi every one,
I have a site that is navigated with a treeview control. What iam trying to do is to hide menu options from the user if the he does not have access rights to that page. For example, i have these two roles, administrator and user. I would like users in the administrator role to only see menu nodes leading to report pages but not data entry pages and then users in the user role to see only menu nodes linking to data entry pages but not report pages.
I have added role attributes to my node tags in the sitemapfile and i quess iam supposed to add the code below to my web.config file but the code is bringing errors in my application during build.
sitemap defaultprovider="xmlsitemapprovider" enabled="true"></sitemap>
<providers></providers>
<clear/>
<add name="xmlsitemapprovider"
description="site map provider which reads in .sitemap xml files."
type="system.web.xmlsitemapprovider, system.web,
version=2.0.0.0, culture=neutral, publickeytoken=bo3f5f7f11d50a3a"
sitemapFile="web.sitemap"
securitytrimmingenabled="true" />
on debugging, the site alerts that there is an errror on line 20 below
Line 18: providerName="System.Data.SqlClient" />
Line 19: </connectionStrings>
Line 20: <sitemap defaultprovider="xmlsitemapprovider" enabled="true"></sitemap>
Line 21: <providers></providers>
Line 22: <clear/>
Any help or an idea about an easier method of implementing this cool feature is welcome. Thanks.
--------------------------------------------------
No Project Too Eazy.
--------------------------------------------------