InputExtensions Class

 

Represents support for HTML input controls in an application.

Namespace:   System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

System.Object
  System.Web.Mvc.Html.InputExtensions

public static class InputExtensions

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCheckBox(HtmlHelper, String)

Returns a check box input element by using the specified HTML helper and the name of the form field.

System_CAPS_pubmethodSystem_CAPS_staticCheckBox(HtmlHelper, String, Boolean)

Returns a check box input element by using the specified HTML helper, the name of the form field, and a value to indicate whether the check box is selected.

System_CAPS_pubmethodSystem_CAPS_staticCheckBox(HtmlHelper, String, Boolean, IDictionary<String, Object>)

Returns a check box input element by using the specified HTML helper, the name of the form field, a value to indicate whether the check box is selected, and the HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticCheckBox(HtmlHelper, String, Boolean, Object)

Returns a check box input element by using the specified HTML helper, the name of the form field, a value that indicates whether the check box is selected, and the HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticCheckBox(HtmlHelper, String, IDictionary<String, Object>)

Returns a check box input element by using the specified HTML helper, the name of the form field, and the HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticCheckBox(HtmlHelper, String, Object)

Returns a check box input element by using the specified HTML helper, the name of the form field, and the HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticCheckBoxFor<TModel>(HtmlHelper<TModel>, Expression<Func<TModel, Boolean>>)

Returns a check box input element for each property in the object that is represented by the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticCheckBoxFor<TModel>(HtmlHelper<TModel>, Expression<Func<TModel, Boolean>>, IDictionary<String, Object>)

Returns a check box input element for each property in the object that is represented by the specified expression, using the specified HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticCheckBoxFor<TModel>(HtmlHelper<TModel>, Expression<Func<TModel, Boolean>>, Object)

Returns a check box input element for each property in the object that is represented by the specified expression, using the specified HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticHidden(HtmlHelper, String)

Returns a hidden input element by using the specified HTML helper and the name of the form field.

System_CAPS_pubmethodSystem_CAPS_staticHidden(HtmlHelper, String, Object)

Returns a hidden input element by using the specified HTML helper, the name of the form field, and the value.

System_CAPS_pubmethodSystem_CAPS_staticHidden(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.

System_CAPS_pubmethodSystem_CAPS_staticHidden(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.

System_CAPS_pubmethodSystem_CAPS_staticHiddenFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)

Returns an HTML hidden input element for each property in the object that is represented by the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticHiddenFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<String, Object>)

Returns an HTML hidden input element for each property in the object that is represented by the specified expression, using the specified HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticHiddenFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object)

Returns an HTML hidden input element for each property in the object that is represented by the specified expression, using the specified HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticPassword(HtmlHelper, String)

Returns a password input element by using the specified HTML helper and the name of the form field.

System_CAPS_pubmethodSystem_CAPS_staticPassword(HtmlHelper, String, Object)

Returns a password input element by using the specified HTML helper, the name of the form field, and the value.

System_CAPS_pubmethodSystem_CAPS_staticPassword(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.

System_CAPS_pubmethodSystem_CAPS_staticPassword(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.

System_CAPS_pubmethodSystem_CAPS_staticPasswordFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)

Returns a password input element for each property in the object that is represented by the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticPasswordFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<String, Object>)

Returns a password input element for each property in the object that is represented by the specified expression, using the specified HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticPasswordFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object)

Returns a password input element for each property in the object that is represented by the specified expression, using the specified HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticRadioButton(HtmlHelper, String, Object)

Returns a radio button input element that is used to present mutually exclusive options.

System_CAPS_pubmethodSystem_CAPS_staticRadioButton(HtmlHelper, String, Object, Boolean)

Returns a radio button input element that is used to present mutually exclusive options.

System_CAPS_pubmethodSystem_CAPS_staticRadioButton(HtmlHelper, String, Object, Boolean, IDictionary<String, Object>)

Returns a radio button input element that is used to present mutually exclusive options.

System_CAPS_pubmethodSystem_CAPS_staticRadioButton(HtmlHelper, String, Object, Boolean, Object)

Returns a radio button input element that is used to present mutually exclusive options.

System_CAPS_pubmethodSystem_CAPS_staticRadioButton(HtmlHelper, String, Object, IDictionary<String, Object>)

Returns a radio button input element that is used to present mutually exclusive options.

System_CAPS_pubmethodSystem_CAPS_staticRadioButton(HtmlHelper, String, Object, Object)

Returns a radio button input element that is used to present mutually exclusive options.

System_CAPS_pubmethodSystem_CAPS_staticRadioButtonFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object)

Returns a radio button input element for each property in the object that is represented by the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticRadioButtonFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object, IDictionary<String, Object>)

Returns a radio button input element for each property in the object that is represented by the specified expression, using the specified HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticRadioButtonFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object, Object)

Returns a radio button input element for each property in the object that is represented by the specified expression, using the specified HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticTextBox(HtmlHelper, String)

Returns a text input element by using the specified HTML helper and the name of the form field.

System_CAPS_pubmethodSystem_CAPS_staticTextBox(HtmlHelper, String, Object)

Returns a text input element by using the specified HTML helper, the name of the form field, and the value.

System_CAPS_pubmethodSystem_CAPS_staticTextBox(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.

System_CAPS_pubmethodSystem_CAPS_staticTextBox(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.

System_CAPS_pubmethodSystem_CAPS_staticTextBox(HtmlHelper, String, Object, String)

Returns a text input element.

System_CAPS_pubmethodSystem_CAPS_staticTextBox(HtmlHelper, String, Object, String, IDictionary<String, Object>)

Returns a text input element.

System_CAPS_pubmethodSystem_CAPS_staticTextBox(HtmlHelper, String, Object, String, Object)

Returns a text input element.

System_CAPS_pubmethodSystem_CAPS_staticTextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)

Returns a text input element for each property in the object that is represented by the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticTextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IDictionary<String, Object>)

Returns a text input element for each property in the object that is represented by the specified expression, using the specified HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticTextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object)

Returns a text input element for each property in the object that is represented by the specified expression, using the specified HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticTextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String)

Returns a text input element.

System_CAPS_pubmethodSystem_CAPS_staticTextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, IDictionary<String, Object>)

Returns a text input element.

System_CAPS_pubmethodSystem_CAPS_staticTextBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, Object)

Returns a text input element.

The InputExtensions class contains methods that extend the HtmlHelper class. Each extension method renders an HTML input element. With the exception of the Password extension method, each extension method can repopulate its values from the posted values by using the ModelState object. The following input element types are available in this class:

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: