5
我有以下標記的登錄控制:ASP.NET登錄控件佈局模板failuretext
<asp:Login ID="ScrapLogin" runat="server" FailureText="Brugeren findes ikke eller adgangskoden er forkert!" RenderOuterTable="false">
<LayoutTemplate>
<ul class="form">
<li>
<asp:Label AssociatedControlID="UserName" runat="server" Text="Brugernavn:" />
<asp:TextBox ID="UserName" runat="server" />
</li>
<li>
<asp:Label AssociatedControlID="Password" runat="server" Text="Password:" />
<asp:TextBox ID="Password" runat="server" TextMode="Password" />
</li>
</ul>
<asp:Button ID="Login" runat="server" Text="Log ind!" />
*<asp:Literal ID="FailureText" runat="server" EnableViewState="false" />*
</LayoutTemplate>
的問題是,在FailureText從未顯示,甚至當我輸入錯誤的用戶名或密碼。它只是重新加載頁面。我需要自己觸發這個嗎?如果我沒有指定LayoutTemplate,它將顯示文本(儘管它使用大量表格呈現:)。
在此先感謝! :)
謝謝!!!!!!!!!!!!!!!!!! :) – tommed 2014-04-17 10:11:27