PasswordRecovery::TextLayout Property
Gets or sets a value that specifies whether to display the PasswordRecovery control in a horizontal or vertical layout.
Assembly: System.Web (in System.Web.dll)
public: virtual property LoginTextLayout TextLayout { LoginTextLayout get (); void set (LoginTextLayout value); }
<asp:PasswordRecovery TextLayout="LoginTextLayout" />
Property Value
Type: System.Web.UI.WebControls::LoginTextLayoutOne of the LoginTextLayout enumeration values. The default is TextOnLeft.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The TextLayout property is not set to a valid LoginTextLayout enumeration value. |
The TextLayout property specifies where the PasswordRecovery control displays the field labels for the Answer, Question, and User Name text boxes. When the TextLayout property is set to TextOnLeft (the default), the field labels appear to the left of the text boxes. When TextLayout is set to TextOnTop, the field labels appear above the text boxes.
The text of the labels is specified in the AnswerLabelText, QuestionLabelText, and UserNameLabelText properties, respectively. The style settings for the field labels are specified in the LabelStyle property.
The following code example shows how changing the TextLayout property affects the appearance of the PasswordRecovery control.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.