このトピックに関する他の質問を見ましたが、解決策を得ることができませんでした。他の回答から得たものは次のとおりです。
<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>
User ロールだけでログインしましたが、両方のパネルが表示されたままです。これを修正するにはどうすればよいですか?
エラーメッセージは表示されません。機能しません。