Share via


PasswordRecovery.QuestionLabelText 속성

정의

Question 텍스트 상자의 레이블 텍스트를 가져오거나 설정합니다.

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

속성 값

String

Question 텍스트 상자의 레이블입니다. 기본값은 "질문:"입니다.

예제

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

<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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" 
      AnswerLabelText="Your answer:" 
      QuestionLabelText="Answer this question:" 
      UserNameLabelText="Your user name:">
      <LabelStyle 
        font-bold="True" 
        forecolor="White"
        backcolor="Navy">
      </LabelStyle>
    </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">
<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" 
      UserNameLabelText="Your user name:" 
      QuestionLabelText="Answer this question:" 
      AnswerLabelText="Your answer:">
      <LabelStyle 
        font-bold="True" 
        forecolor="White"
        backcolor="Navy">
      </LabelStyle>
    </asp:PasswordRecovery>
  </form>
</body>
</html>

설명

QuestionLabelText 속성 암호 복구 확인 질문 텍스트 상자에 대 한 레이블 텍스트를 포함 합니다.

에 포함 된 스타일 설정 합니다 LabelStyle 속성의 모양을 정의 합니다 QuestionLabelText 속성입니다.

사용 하는 경우는 QuestionTemplate 질문 보기의 모양을 정의 하는 속성을 QuestionLabelText 속성이 적용 되지 않습니다.

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

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

적용 대상

추가 정보