嘿伙计们,任何人都可以告诉我< asp:LoginView>的属性是什么标签是在下面的代码块中? [英] Hey guys, can anyone tell me what the properties of the <asp:LoginView> tag are in the code block below?
本文介绍了嘿伙计们,任何人都可以告诉我< asp:LoginView>的属性是什么标签是在下面的代码块中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:LoginView runat="server" ViewStateMode="Disabled" EnableViewState="True">
<anonymoustemplate>
<ul>
<li><a id="registerLink" runat="server" href="~/Account/Register">Register</li>
<li><a id="loginLink" runat="server" href="~/Account/Login">Log in</li>
</ul>
</anonymoustemplate>
<loggedintemplate>
<p>
Hello, <a runat="server" class="username" href="~/Account/Manage" title="Manage your account">
<asp:LoginName runat="server" CssClass="username" />
!
<asp:LoginStatus runat="server" LogoutAction="Redirect" LogoutText="Log off" LogoutPageUrl="~/" />
</p>
</loggedintemplate>
推荐答案
参见 LoginView属性 [ ^ ]。
这篇关于嘿伙计们,任何人都可以告诉我< asp:LoginView>的属性是什么标签是在下面的代码块中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文