|
-
Sep 5th, 2007, 05:00 PM
#1
Thread Starter
Fanatic Member
using SiteMapPath with the roles defind in web.cofig to generate the sitemapPath menu
question:
can I use the sitemapPath along with the windows security and roles defined in web.config automatically to generate the menu
My need is to display the menu in sitemapPath automaticallly according to the logged in user. We are using windows authentication, the system should check to which roles he belongs to and if one of the roles has access to the different menu items in the sitemapPath.
Is that possible, is there any documentation link please?
Thanks a lot.
Thanks a lot for your help.
-
Sep 6th, 2007, 01:13 AM
#2
Re: using SiteMapPath with the roles defind in web.cofig to generate the sitemapPath menu
Hello there,
If you take a look at the post that I made in this thread, you will see that I created a sample application that does exactly what you are asking for.
Hope this helps!!
Gary
-
Sep 6th, 2007, 07:58 AM
#3
Thread Starter
Fanatic Member
Re: using SiteMapPath with the roles defind in web.cofig to generate the sitemapPath menu
can we use it with windows authentication mode.
P.S: Thanks a lot, I will try it.
Thanks a lot for your help.
-
Sep 6th, 2007, 08:56 AM
#4
Re: using SiteMapPath with the roles defind in web.cofig to generate the sitemapPath menu
Hello
I have only ever used the built in authentication using the asp.net login controls. however, I am sure that you could adapt my code to use Windows Authentication instead.
Here is a link that may point you in the correct direction.
Gary
-
Sep 6th, 2007, 03:52 PM
#5
Re: using SiteMapPath with the roles defind in web.cofig to generate the sitemapPath menu
What you'll need to do is to create a role provider and membership provider. In these providers, you can perform your AD authentication and have it return your 'custom' roles. Then with securityTrimmings enabled, you can use the menu control as you'd like.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|