Export (0) Print
Expand All

PasswordRecovery.Answer Property

Note: This property is new in the .NET Framework version 2.0.

Gets the answer to the password recovery confirmation question entered by the user.

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

[ThemeableAttribute(false)] 
public virtual string Answer { get; }
/** @property */
public String get_Answer ()

public function get Answer () : String

Property Value

The answer to the password recovery confirmation question entered by the user.

The Answer property contains the answer to the confirmation question entered by the user. The Answer property is valid only after the page has been posted back to the server.

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

The following code example uses the HttpServerUtility.HtmlEncode method to encode the Answer property before using it to determine whether the user entered the correct answer.

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft