CreateUserWizard.Answer Property

Gets or sets the end user's answer to the password recovery confirmation question.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

[LocalizableAttribute(true)] 
[ThemeableAttribute(false)] 
public:
virtual property String^ Answer {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_Answer ()

/** @property */
public void set_Answer (String value)

public function get Answer () : String

public function set Answer (value : String)

Not applicable.

Property Value

The end user's answer to the password recovery confirmation question. The default value is an empty string ("").

The membership provider specified in the MembershipProvider property will determine whether the question and answer text boxes are displayed at run time.

If an answer is required by the membership provider specified in the MembershipProvider property, then the answer text box will appear on the CreateUserWizard control. Each text box displayed on the CreateUserWizard control has a RequiredFieldValidator object associated with it.

This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and Introduction to ASP.NET Themes.

The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see LocalizableAttribute and ASP.NET Globalization and Localization.

The following code example modifies the e-mail message in the SendingMail event to include the user's password recovery confirmation answer in the message that is sent to new users.

No code example is currently available or this language may not be supported.

The following code example demonstrates a Web page that uses the CustomCreateUserWizard.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: