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

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top