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?
Eliyahu Goldin - 19 Mar 2008 10:16 GMT
That's right, by design only the first matching template is shown.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
> hey
>
[quoted text clipped - 19 lines]
>
> what am I doing wrong here?