MSDN Library

InputExtensions.Hidden Method

Returns a hidden input element.

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

Hidden fields are not displayed by the browser. A hidden field enables you to include data in a form that is not entered by the user. For example, you could use a hidden field to return a string that identifies a discussion thread.

Community Additions

Show:
© 2016 Microsoft