为什么登录状态控件不起作用? [英] Why the Login status control doesn't work?
本文介绍了为什么登录状态控件不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我正在做一个简单的项目,我只是使用Login和LoginStatus控制,但是LoginStatus不起作用,当我点击Logout按钮时它什么也没做。
< asp:Content ID = Content1 ContentPlaceHolderID = MainContent Runat < span class =code-keyword> = 服务器 >
欢迎:< asp:LoginName ID = LoginName1 runat = server >
< / asp :LoginName >
< br / >
< asp:登录 ID = Login1 runat = server >
< / asp:登录 >
< ; br / < span class =code-keyword>>
< asp:LoginStatus ID = LoginStatus1 runat = server / >
< / asp:Content >
解决方案
< blockquote>请遵循以下文章。你需要为此编码。
1. ASP.NET 3.5中的登录控制 [ ^ ]
2. ASP.NET 3.5中的登录状态控制 [ ^ ]
Hello everybody, I am doing a simple project and I just use the Login and LoginStatus contrl,but the LoginStatus doesn't work and it does nothing when I click on the Logout button.
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
Welcome: <asp:LoginName ID="LoginName1" runat="server">
</asp:LoginName>
<br />
<asp:Login ID="Login1" runat="server">
</asp:Login>
<br />
<asp:LoginStatus ID="LoginStatus1" runat="server" />
</asp:Content>
解决方案
Please follow the following articles. You need to code for that.
1. Login Control in ASP.NET 3.5[^]
2. Login Status Control in ASP.NET 3.5[^]
这篇关于为什么登录状态控件不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文