<asp:LoginView ID="LoginView2" runat="server"> <RoleGroups> <asp:RoleGroup Roles="Members"> <ContentTemplate> <a href="~/Members/CustomersList.aspx" id="A44" runat="server"> <img id="Img4" runat="server" alt="Profle" width="160" height="59" border="0" src="/images/profile.jpg" onmouseover="this.src='/images/profile_hover.jpg'" onmouseout="this.src='/images/profile.jpg'" /></a> </ContentTemplate> </asp:RoleGroup> <asp:RoleGroup Roles="Anonymous"> <ContentTemplate> <a href="~/Login.aspx" id="A15" runat="server"> <img id="Img4" runat="server" alt="Login" width="160" height="59" border="0" src="/images/Login.jpg" onmouseover="this.src='/images/Login-hover.jpg'" onmouseout="this.src='/images/Login.jpg'" /></a> </ContentTemplate> </asp:RoleGroup> </RoleGroups> </asp:LoginView>
if (Profile.UserName == "X" && User.Identity.IsAuthenticated) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)