Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 04, 2012 03:32 PM by Mac14
Nov 29, 2012 07:16 PM|LINK
Hello Everyone! I created a folder in my site and it's called "admin". And I added the forms about administrating into this folder. I hid the forms in this folder to users with asp.net configuration manager but I want to add a shortcut for admins. I have
a hyperlink at the bottom of the site called "Admin Control Panel" which directs you to admin panel. But I want to make this button/hyperlink visible only for members who are in the "admin"s group. How can I do that? With loginview or something? Or should
I use something different from hyperlink? I am waiting your useful tips. Thanks!
Nov 30, 2012 04:42 PM|LINK
The easy way to do that would be use roles in asp.net membership provider and then configure that folder to be visible only to those under the admin Role.
Nov 30, 2012 04:43 PM|LINK
Scrap that, I misread your question. You can do this using Code Behind to check if the !User.IsInRole == "Admin", change the visibility of that link to hidden if the check comes back as true.
Dec 04, 2012 03:32 PM|LINK
Thanks for your caring :)