loginView 컨트롤에서 로그인 상태를 변경하는 방법
-
15-11-2019 - |
문제
시스템에 로그인 할 때 첫 번째 템플릿에서 두 번째 템플릿에서 두 번째 템플릿으로 상태를 변경하는 방법은 무엇입니까?
<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
<AnonymousTemplate>
[ <a href="~/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ]
</AnonymousTemplate>
<LoggedInTemplate>
Welcome!
[ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="/Logout.aspx"/> ]
</LoggedInTemplate>
</asp:LoginView>
.
로그인 상태를 감지하는 방법
다른 팁
The LoginView Control handles this for you. It is done using the ASP.NET Forms authentication and the "IsAuthenticated" property that is managed by ASP.NET.
제휴하지 않습니다 StackOverflow