Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding web.sitemap links using security trimming

Status
Not open for further replies.

jrenae

Programmer
Jan 18, 2006
142
US
I've setup a simple asp:Menu control which uses a web.sitemap for the links. I've setup a GenericPrincipal object for my logged in user which contains their roles (marketing, finance, IT, etc) which is populated by looking in the database for that userid. One user can be in many roles. I now need to add a 'sales' role and I need to restrict the menu links for that role. I started to read about the security trimming, but it seems that works with a different type of role (system.web.security) that I have in my GenericPrincipal (system.security.principal). Can I use security trimming with my GenericPrincipal roles?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top