I looked at the other questions concerning this topic, but could not get the solution to work, here is what I have from the other answer:
<asp:Panel ID="userOptionsPan" runat="server" Visible='<%# User.IsInRole("User") %>'>
User options pan test
</asp:Panel>
<asp:Panel ID="employeeOptionsPan" runat="server" Visible='<%# User.IsInRole("Employee") %>'>
Employee options pan test
</asp:Panel>
I log in with just the User role but both panel are still visible. How do I fix this?
I do not get any error messages, it just does not work.