Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView with SiteMapDataSource
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
Divers
Thread ID:
01367957
Message ID:
01367964
Vues:
4
Quick search brings this http://forums.asp.net/p/1096023/1654733.aspx

>Hi All,
>
>On my ASP.NET page I have a TreeView control bind to the SiteMapDataSource using the following SiteMap file:
>
>
>
><?xml version="1.0" encoding="utf-8" ?>
><siteMap>
>  <siteMapNode title="Home" url="mDefault.aspx">
>
>    <siteMapNode title="Add New Product" description="Add New Product" 
>                 url="mCreateNew.aspx" 
>                 role="Administrator,Developer,Vendor,PurchasingAgent,PurchasingManager">
>    </siteMapNode>
>
>    <siteMapNode title="Item Update" description="Item Update" 
>                 url="mUpdateItemSearch.aspx" 
>                 role="Administrator,Developer,Merchandising">
>    </siteMapNode>
>
>    <siteMapNode title="Quick Upload" description="Quick Upload" 
>                 url="mQuickUpload.aspx" 
>                 role="Administrator,Developer,Merchandising" >
>    </siteMapNode>
>
>  </siteMapNode>
></siteMap>
>
>
>My goal is to limit the TreeView nodes based on the Roles Membership but the above does not work. All users can see all TreeView menu options as soon as they login. What am I missing?
>
>Thank you,
>Daniel
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform