Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

InputExtensions.Password Method

Returns a password input element.

  NameDescription
Public method Static member Password(HtmlHelper, String) Returns a password input element by using the specified HTML helper and the name of the form field.
Public method Static member Password(HtmlHelper, String, Object) Returns a password input element by using the specified HTML helper, the name of the form field, and the value.
Public method Static member Password(HtmlHelper, String, Object, IDictionary<String, Object>) Returns a password input element by using the specified HTML helper, the name of the form field, the value, and the HTML attributes.
Public method Static member Password(HtmlHelper, String, Object, Object) Returns a password input element by using the specified HTML helper, the name of the form field, the value, and the HTML attributes.
Top

A password box is similar to a text box, except that the text entered in a password box shows up as dots on the screen. This prevents others from reading the password.

Community Additions

Show:
© 2015 Microsoft