Class InputPassword
Simple input control that allows a user to enter / change passwords.
Implements
Inherited Members
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public class InputPassword : InputBase, INamingContainer
Constructors
InputPassword()
Declaration
public InputPassword()
Properties
Collapsed
Gets or sets a value indicating whether this InputPassword is collapsed.
Declaration
public bool Collapsed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
FirstPassword
Gets the first password.
Declaration
public string FirstPassword { get; }
Property Value
Type | Description |
---|---|
System.String | The first password. |
InputCssClass
Gets or sets the input CSS class that is used for the inner div tag.
Declaration
public string InputCssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The input CSS class that is used for the inner div tag. |
RenderPassword
Gets or sets a value indicating whether the input fields should render the password to the client on post backs.
Declaration
public bool RenderPassword { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
It may be a security issue to send the password in clear text to the client. It will only be sent on post backs if the client has already entered a value though.
SecondPassword
Gets the second password.
Declaration
public string SecondPassword { get; }
Property Value
Type | Description |
---|---|
System.String | The second password. |
Methods
CreateChildControls()
Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
Declaration
protected override void CreateChildControls()
Password_PreRender(Object, EventArgs)
Used to set the text for the password controls are these are removed for TextBoxes in password mode.
Declaration
protected virtual void Password_PreRender(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source of the event. |
System.EventArgs | e | The System.EventArgs instance containing the event data. |