CreateUserWizard.Question Property
Assembly: System.Web (in system.web.dll)
'Declaration <LocalizableAttribute(True)> _ <ThemeableAttribute(False)> _ Public Overridable Property Question As String 'Usage Dim instance As CreateUserWizard Dim value As String value = instance.Question instance.Question = value
/** @property */ public String get_Question () /** @property */ public void set_Question (String value)
public function get Question () : String public function set Question (value : String)
Property Value
The password recovery confirmation question entered by the user. 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. Each text box displayed on the CreateUserWizard control has a RequiredFieldValidator associated with it.
This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and ASP.NET Themes and Skins Overview.
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 question in the message sent to new users.
<%@ Page Language="VB"%> <%@ Import namespace="Samples.AspNet.VB.Controls" %> <script runat="server"> Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Dim createUser As New CustomCreateUserWizard Placeholder1.Controls.Add(createUser) End Sub </script> <html> <head runat="server"> <title>CreateUserWizard.OnSendingMail sample</title> </head> <body> <form id="form1" runat="server"> <div> <asp:placeholder id="Placeholder1" runat="server" > </asp:placeholder> </div> </form> </body> </html>
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.