InputExtensions.Password Method (System.Web.Mvc.Html)

Switch View :
ScriptFree
.NET Framework Class Library
InputExtensions.Password Method

Returns a password input element.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
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
Remarks

Unlike other input extension methods, the Password method does not repopulate its value from the ModelState object.

See Also

Reference