|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
PasswordRecovery, classe
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.CompositeControl
System.Web.UI.WebControls.PasswordRecovery
Espace de noms : System.Web.UI.WebControls
Assembly : System.Web (dans System.Web.dll)
Le type PasswordRecovery expose les membres suivants.
| Nom | Description | |
|---|---|---|
![]() | AccessKey | |
![]() | Adapter | |
![]() | Answer | |
![]() | AnswerLabelText | |
![]() | AnswerRequiredErrorMessage | |
![]() | AppRelativeTemplateSourceDirectory | |
![]() | Attributes | |
![]() | BackColor | |
![]() | BindingContainer | Infrastructure. |
![]() | BorderColor | |
![]() | BorderPadding | |
![]() | BorderStyle | |
![]() | BorderWidth | |
![]() | ChildControlsCreated | |
![]() | ClientID | |
![]() | ClientIDMode | |
![]() | ClientIDSeparator | |
![]() | Context | |
![]() | Controls | |
![]() | ControlStyle | |
![]() | ControlStyleCreated | |
![]() | CssClass | |
![]() | DataItemContainer | |
![]() | DataKeysContainer | |
![]() | DesignMode | |
![]() | Enabled | |
![]() | EnableTheming | |
![]() | EnableViewState | |
![]() | Events | |
![]() | FailureTextStyle | |
![]() | Font | |
![]() | ForeColor | |
![]() | GeneralFailureText | |
![]() | HasAttributes | |
![]() | HasChildViewState | |
![]() | Height | |
![]() | HelpPageIconUrl | |
![]() | HelpPageText | |
![]() | HelpPageUrl | |
![]() | HyperLinkStyle | |
![]() | ID | |
![]() | IdSeparator | Infrastructure. |
![]() | InstructionTextStyle | |
![]() | IsChildControlStateCleared | |
![]() | IsEnabled | |
![]() | IsTrackingViewState | |
![]() | IsViewStateEnabled | |
![]() | LabelStyle | |
![]() | LoadViewStateByID | |
![]() | MailDefinition | |
![]() | MembershipProvider | |
![]() | NamingContainer | |
![]() | Page | |
![]() | Parent | |
![]() | Question | |
![]() | QuestionFailureText | |
![]() | QuestionInstructionText | |
![]() | QuestionLabelText | |
![]() | QuestionTemplate | |
![]() | QuestionTemplateContainer | Infrastructure. |
![]() | QuestionTitleText | |
![]() | RenderingCompatibility | |
![]() | RenderOuterTable | |
![]() | Site | |
![]() | SkinID | |
![]() | Style | |
![]() | SubmitButtonImageUrl | |
![]() | SubmitButtonStyle | |
![]() | SubmitButtonText | |
![]() | SubmitButtonType | |
![]() | SuccessPageUrl | |
![]() | SuccessTemplate | |
![]() | SuccessTemplateContainer | Infrastructure. |
![]() | SuccessText | |
![]() | SuccessTextStyle | |
![]() | SupportsDisabledAttribute | |
![]() | TabIndex | |
![]() | TagKey | |
![]() | TagName | |
![]() | TemplateControl | |
![]() | TemplateSourceDirectory | |
![]() | TextBoxStyle | |
![]() | TextLayout | |
![]() | TitleTextStyle | |
![]() | ToolTip | |
![]() | UniqueID | |
![]() | UserName | |
![]() | UserNameFailureText | |
![]() | UserNameInstructionText | |
![]() | UserNameLabelText | |
![]() | UserNameRequiredErrorMessage | |
![]() | UserNameTemplate | |
![]() | UserNameTemplateContainer | Infrastructure. |
![]() | UserNameTitleText | |
![]() | ValidateRequestMode | |
![]() | ValidatorTextStyle | |
![]() | ViewState | |
![]() | ViewStateIgnoresCase | |
![]() | ViewStateMode | |
![]() | Visible | |
![]() | Width |
| Nom | Description | |
|---|---|---|
![]() | AddAttributesToRender | |
![]() | AddedControl | |
![]() | AddParsedSubObject | |
![]() | ApplyStyle | |
![]() | ApplyStyleSheetSkin | |
![]() | BeginRenderTracing | |
![]() | BuildProfileTree | Infrastructure. |
![]() | ClearCachedClientID | Infrastructure. |
![]() | ClearChildControlState | |
![]() | ClearChildState | |
![]() | ClearChildViewState | |
![]() | ClearEffectiveClientIDMode | Infrastructure. |
![]() | CopyBaseAttributes | |
![]() | CreateChildControls | |
![]() | CreateControlCollection | |
![]() | CreateControlStyle | |
![]() | DataBind() | |
![]() | DataBind(Boolean) | |
![]() | DataBindChildren | |
![]() | Dispose | |
![]() | EndRenderTracing | |
![]() | EnsureChildControls | |
![]() | EnsureID | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | FindControl(String) | |
![]() | FindControl(String, Int32) | Infrastructure. |
![]() | Focus | |
![]() | GetDesignModeState | Infrastructure. |
![]() | GetHashCode | |
![]() | GetRouteUrl(Object) | |
![]() | GetRouteUrl(RouteValueDictionary) | |
![]() | GetRouteUrl(String, Object) | |
![]() | GetRouteUrl(String, RouteValueDictionary) | |
![]() | GetType | |
![]() | GetUniqueIDRelativeTo | |
![]() | HasControls | |
![]() | HasEvents | |
![]() | IsLiteralContent | Infrastructure. |
![]() | LoadControlState | Infrastructure. |
![]() | LoadViewState | |
![]() | MapPathSecure | |
![]() | MemberwiseClone | |
![]() | MergeStyle | |
![]() | OnAnswerLookupError | |
![]() | OnBubbleEvent | |
![]() | OnDataBinding | |
![]() | OnInit | Infrastructure. |
![]() | OnLoad | |
![]() | OnPreRender | Infrastructure. |
![]() | OnSendingMail | |
![]() | OnSendMailError | |
![]() | OnUnload | |
![]() | OnUserLookupError | |
![]() | OnVerifyingAnswer | |
![]() | OnVerifyingUser | |
![]() | OpenFile | |
![]() | RaiseBubbleEvent | |
![]() | RecreateChildControls | |
![]() | RemovedControl | |
![]() | Render | |
![]() | RenderBeginTag | |
![]() | RenderChildren | |
![]() | RenderContents | |
![]() | RenderControl(HtmlTextWriter) | |
![]() | RenderControl(HtmlTextWriter, ControlAdapter) | |
![]() | RenderEndTag | |
![]() | ResolveAdapter | |
![]() | ResolveClientUrl | |
![]() | ResolveUrl | |
![]() | SaveControlState | |
![]() | SaveViewState | |
![]() | SetDesignModeState | |
![]() | SetRenderMethodDelegate | Infrastructure. |
![]() | SetTraceData(Object, Object) | |
![]() | SetTraceData(Object, Object, Object) | |
![]() | ToString | |
![]() | TrackViewState |
| Nom | Description | |
|---|---|---|
![]() | AnswerLookupError | |
![]() | DataBinding | |
![]() | Disposed | |
![]() | Init | |
![]() | Load | |
![]() | PreRender | |
![]() | SendingMail | |
![]() | SendMailError | |
![]() | Unload | |
![]() | UserLookupError | |
![]() | VerifyingAnswer | |
![]() | VerifyingUser |
| Nom | Description | |
|---|---|---|
![]() | FindDataSourceControl | |
![]() | FindFieldTemplate | |
![]() | FindMetaTable |
| Nom | Description | |
|---|---|---|
![]() ![]() | SubmitButtonCommandName |
| Nom | Description | |
|---|---|---|
![]() ![]() | IAttributeAccessor.GetAttribute | Infrastructure. |
![]() ![]() | IAttributeAccessor.SetAttribute | |
![]() ![]() | ICompositeControlDesignerAccessor.RecreateChildControls | |
![]() ![]() | IControlBuilderAccessor.ControlBuilder | |
![]() ![]() | IControlDesignerAccessor.GetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetOwnerControl | Infrastructure. |
![]() ![]() | IControlDesignerAccessor.UserData | |
![]() ![]() | IDataBindingsAccessor.DataBindings | |
![]() ![]() | IDataBindingsAccessor.HasDataBindings | |
![]() ![]() | IExpressionsAccessor.Expressions | |
![]() ![]() | IExpressionsAccessor.HasExpressions | |
![]() ![]() | IParserAccessor.AddParsedSubObject |
Introduction
Remarque |
|---|
Remarque |
|---|
Note de sécurité |
|---|
Remarque |
|---|
Remarque |
|---|
Vues
Vue du nom d'utilisateur : demande son nom d'utilisateur inscrit à l'utilisateur. Vue de la question : requiert que l'utilisateur fournisse la réponse à une question stockée pour réinitialiser le mot de passe. Vue de la réussite : indique à l'utilisateur si la récupération du mot de passe ou la réinitialisation est réussie.
Styles et modèles
Regroupements de validation
Application des styles CSS
Accessibilité
Syntaxe déclarative
<asp:PasswordRecovery
AccessKey="string"
AnswerLabelText="string"
AnswerRequiredErrorMessage="string"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderPadding="integer"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
Inset|Outset"
BorderWidth="size"
CssClass="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
GeneralFailureText="string"
Height="size"
HelpPageIconUrl="uri"
HelpPageText="string"
HelpPageUrl="uri"
ID="string"
MailDefinition-BodyFileName="uri"
MailDefinition-CC="string"
MailDefinition-From="string"
MailDefinition-IsBodyHtml="True|False"
MailDefinition-Priority="Normal|Low|High"
MailDefinition-Subject="string"
MembershipProvider="string"
OnAnswerLookupError="AnswerLookupError event handler"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnSendingMail="SendingMail event handler"
OnSendMailError="SendMailError event handler"
OnUnload="Unload event handler"
OnUserLookupError="UserLookupError event handler"
OnVerifyingAnswer="VerifyingAnswer event handler"
OnVerifyingUser="VerifyingUser event handler"
QuestionFailureText="string"
QuestionInstructionText="string"
QuestionLabelText="string"
QuestionTitleText="string"
runat="server"
SkinID="string"
Style="string"
SubmitButtonImageUrl="uri"
SubmitButtonText="string"
SubmitButtonType="Button|Image|Link"
SuccessPageUrl="uri"
SuccessText="string"
TabIndex="integer"
TextLayout="TextOnLeft|TextOnTop"
ToolTip="string"
UserName="string"
UserNameFailureText="string"
UserNameInstructionText="string"
UserNameLabelText="string"
UserNameRequiredErrorMessage="string"
UserNameTitleText="string"
Visible="True|False"
Width="size"
>
<FailureTextStyle />
<HyperLinkStyle />
<InstructionTextStyle />
<LabelStyle />
<MailDefinition
BodyFileName="uri"
CC="string"
From="string"
IsBodyHtml="True|False"
Priority="Normal|Low|High"
Subject="string"
>
<EmbeddedObjects>
<asp:EmbeddedMailObject
Name="string"
Path="uri"
/>
</EmbeddedObjects>
</MailDefinition>
<QuestionTemplate>
<!-- child controls -->
</QuestionTemplate>
<SubmitButtonStyle />
<SuccessTemplate>
<!-- child controls -->
</SuccessTemplate>
<SuccessTextStyle />
<TextBoxStyle />
<TitleTextStyle />
<UserNameTemplate>
<!-- child controls -->
</UserNameTemplate>
<ValidatorTextStyle />
</asp:PasswordRecovery>
| Topic | Location |
|---|---|
| Comment : activer la récupération du mot de passe utilisateur à l'aide du contrôle PasswordRecovery ASP.NET | Génération d'applications Web ASP.NET |
| Comment : personnaliser le contrôle PasswordRecovery | Génération d'applications Web ASP.NET |
| Comment : personnaliser le contrôle PasswordRecovery | Génération d'applications Web ASP.NET dans Visual Studio |
| Comment : activer la récupération du mot de passe utilisateur à l'aide du contrôle PasswordRecovery ASP.NET | Génération d'applications Web ASP.NET dans Visual Studio |
<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> // Set the field label background color if the user name is not found. void PasswordRecovery1_UserLookupError(object sender, System.EventArgs e) { PasswordRecovery1.LabelStyle.ForeColor = System.Drawing.Color.Red; } // Reset the field label background color. void PasswordRecovery1_Load(object sender, System.EventArgs e) { PasswordRecovery1.LabelStyle.ForeColor = System.Drawing.Color.Black; } </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>ASP.NET Example</title> </head> <body> <form id="form1" runat="server"> <asp:PasswordRecovery id="PasswordRecovery1" runat="server" BorderStyle="Solid" BorderWidth="1px" BackColor="#F7F7DE" Font-Size="10pt" Font-Names="Verdana" BorderColor="#CCCC99" HelpPageText="Need help?" HelpPageUrl="recoveryHelp.aspx" onuserlookuperror="PasswordRecovery1_UserLookupError" onload="PasswordRecovery1_Load" > <successtemplate> <table border="0" style="font-size:10pt;"> <tr> <td>Your password has been sent to you.</td> </tr> </table> </successtemplate> <titletextstyle font-bold="True" forecolor="White" backcolor="#6B696B"> </titletextstyle> </asp:PasswordRecovery> </form> </body> </html>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.

