Export (0) Print
Expand All

InputExtensions.TextBox Method

Returns a text input element.

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

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

The difference between calling the TextBox method and using an input element is that the TextBox method is designed to make it easy to bind to view data or model data.

Show:
© 2014 Microsoft