문제

시스템에 로그인 할 때 첫 번째 템플릿에서 두 번째 템플릿에서 두 번째 템플릿으로 상태를 변경하는 방법은 무엇입니까?

<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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top