LoginView control's AnonymousTemplate and LoggedInTemplate does not work when used inside the ASPxRoundPanel control.
After some testing this condition is completely reproducible and consistent.
When wrapping the ASPxRoundPanel control around ASP.Net's LoginView control, then the LoginView only shows what is in the AnonymousTemplate and never shows the content of the LoggedInTemplate even when the conditions are such that this template should be shown.
This issue occurs when a UserControl is used. I have not tested the same directly on a page.
We have already discussed a similar problem in one of our reports:
If a solution suggested in this report does not help, please reactivate this ticket.
I ran into other issues when using the FixedLoginView fix.
So I removed it and use the asp:MultiView control and test for logged in or out state in my code and switch to the appropriate view. See example:
<asp:MultiView ID="MultiView1" runat="server" OnInit="MultiView1_Init">
<asp:View ID="viewAnonymous" runat="server">
'---- Login and other controls as needed
<asp:View ID="viewLoggedIn" runat="server">
You are logged in as
<asp:LoginName ID="LoginName1" runat="server" />.<br />
<asp:LoginStatus ID="LoginStatus1" runat="server" LogoutAction="Redirect"
Public Sub MultiView1_Init(ByVal sender As Object, ByVal e As EventArgs)
If HttpContext.Current.User.Identity.IsAuthenticated() Then
This workaround resolved all the issues.