Hi there,
This is a known limitation of the LoginView. Take a look at the docs:
http://quickstarts.asp.net/QuickStar...loginview.aspx
Quote:
|
quote:There is no attempt by the control to merge all of the templates that the user is eligible to see based on all of their role group associations or to select the most privileged role group template. For example if a user is in both the customer and admin role groups and the customer template is sequentially before the admin template, that user will only ever see the customer template.
|
You can replicate the behavior quite easily with a few placeholders and some code behind:
Code:
<asp:Placeholder id="plcAdmin" runat="server/>
As an administrator you have full access to all admin pages.
</asp:Placeholder>
<asp:Placeholder id="plcOwner" runat="server/>
Hi Jim. As the owner you can change the news, the squad
and the match fixtures.
</asp:Placeholder>
Combined with this code in the code behind:
plcAdmin.Visible = User.IsInRole("Administrator")
plcOwner.Visible = User.IsInRole("Owner")
Not ideal, but it may work for you....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004