multiple roles in asp.net website

J

Jeff

hey

asp.net

In my webproject I have defined 2 roles, Customer and Admin. A person
registered at the website can be member of both roles. I want the Customer
role to see some standard webpages, and the Admin role to see the standard
webpages with some extra features...

I use LoginView

<RoleGroups>
<asp:RoleGroup
Roles="Customer"><ContentTemplate>customer</ContentTemplate></asp:RoleGroup>
<asp:RoleGroup Roles="Admin"><ContentTemplate>You are
admin</ContentTemplate></asp:RoleGroup>
</RoleGroups>

The markup above doesn't work. When a person is member of both roles only
"customer" is displayed on the webpage. haven't tested if the person is
member of just Customer...

what am I doing wrong here?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top