내 로그인 레이아웃 템플릿 작성. 그러나 사용자가 로그인에 실패 할 때 failuretext 리터럴을 설정할 수 없습니다. IV .. 봤하지만 난 대답을 찾을 수 없습니다 내가없는 결과에 로그인 컨트롤에 FailureText 속성을 설정하려고 한 맞춤 로그인 레이아웃 템플릿의 실패 텍스트 설정
..제어 :
<asp:Login ID="Login" runat="server" DisplayRememberMe="false" OnLoggedIn="OnLoggedIn" OnLoggingIn="OnLoggingIn" OnLoginError="OnLoginError">
<LayoutTemplate>
<table>
// Some other username and password controls here, buttons etc.
<tr>
<td>
<asp:Literal id="FailureText" runat="server"></asp:Literal>
</td>
</tr>
</table>
</LayoutTemplate>
</asp:Login>
Codebehind가 :
protected void OnLoginError(object sender, EventArgs e)
{
Login.FailureText = "Det gick inte att logga in.";
}