so do I have to that to every page?
Main Topics
Browse All Topicsgood day experts,
I am using the asp.net sitemap control and I have enable the security trimming. It half way works, it shows 5 links for everybody and 4 extra links when members are logged in. But, when I assigned one node to be only acces by a superAdmin role it is still visible to everybody.
I'll attach my code to see if you can give me a hand with restricting my menu
thanks,
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi tornado,
All my files are in an admin folder, inside the admin folder i have webconfig file that restrics use to annonymous users and only allows Admin and SuperAdmin.
my menu doesn't show the link for this pages(which is good) unless you sign in. but the problems is once you sign in nomater who you are you get too see link that Admin and SuperAdmin are only suppose to see
so what I want, is for my menu to not show certain links unless you are admin or superAdmin, and if you are an admin you can't see the superAdmin links
know what I mean?
thanks a lot!
oh really! :(
I was trying not to creat a lot folders.. oh well, I will try your suggestion tonight and get back to you.
thnaks a lot.
I also have another question if you are interested in possible getting more points =)
http://www.experts-exchang
Business Accounts
Answer for Membership
by: TornadoVPosted on 2008-06-30 at 06:56:06ID: 21899152
Add the following to your web.config and it should do the trick:
<location path="admin/admin.aspx">
<system.web>
<authorization>
<allow roles="SuperAdmin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
Hope this helps