Share via


PasswordRecovery.QuestionFailureText 속성

정의

암호 복구 확인 질문에 대한 사용자의 대답이 웹 사이트 데이터 저장소에 저장된 대답과 일치하지 않을 경우 표시할 텍스트를 가져오거나 설정합니다.

public:
 virtual property System::String ^ QuestionFailureText { System::String ^ get(); void set(System::String ^ value); };
public virtual string QuestionFailureText { get; set; }
member this.QuestionFailureText : string with get, set
Public Overridable Property QuestionFailureText As String

속성 값

String

암호 복구 확인 질문에 대한 사용자의 대답이 웹 사이트 데이터 저장소에 저장된 대답과 일치하지 않을 경우 표시할 텍스트입니다. 기본값은 "Your answer could not be verified. 다시 시도하세요”와 같은 오류로 인해 실패합니다.

예제

다음 코드 예제에서는 QuestionFailureText 속성입니다.

<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:PasswordRecovery id="PasswordRecovery1" runat="server" 
            GeneralFailureText="You password cannot be retrieved at this time. Please try again later." 
            QuestionFailureText="Your answer does not match the stored answer. Please try again." 
            UserNameFailureText="We couldn't find that user name. Please try again.">
            <FailureTextStyle backcolor="Red" forecolor="White"></FailureTextStyle>
        </asp:PasswordRecovery>
    </form>
</body>
</html>
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

    ' Insert page code here
    '

</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:PasswordRecovery id="PasswordRecovery1" runat="server" 
            GeneralFailureText="You password cannot be retrieved at this time. Please try again later." 
            QuestionFailureText="Your answer does not match the stored answer. Please try again." 
            UserNameFailureText="We couldn't find that user name. Please try again.">
            <FailureTextStyle backcolor="Red" forecolor="White"></FailureTextStyle>
        </asp:PasswordRecovery>
        <!-- Insert content here -->
    </form>
</body>
</html>

설명

QuestionFailureText 암호 복구 확인 질문에 대 한 답이 웹 사이트 데이터 저장소에 저장 된 대답과 일치 하지 않는 경우 표시 되는 오류 메시지를 포함 하는 속성입니다.

스타일 설정을 합니다 FailureTextStyle 속성의 모양을 정의 합니다 QuestionFailureText 속성입니다.

모양을 정의 하는 데 템플릿을 사용할 경우는 PasswordRecovery 컨트롤을 QuestionFailureText 선택적인에 속성이 표시 됩니다 Literal 컨트롤는 ID "FailureText"로 설정 하는 속성.

속성에 대 한 기본 텍스트는 서버의 로캘 설정에 따라 지역화 됩니다.

이 속성의 값으로 설정 된 경우 디자이너 도구를 사용 하 여 리소스 파일에 자동으로 저장 될 수 있습니다. 자세한 내용은 LocalizableAttribute 하 고 전역화 및 지역화합니다.

적용 대상

추가 정보