InputExtensions.HiddenFor Method

Definition

Overloads

HiddenFor<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.

HiddenFor<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.

HiddenFor<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.

HiddenFor<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.

public static System.Web.Mvc.MvcHtmlString HiddenFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression);
static member HiddenFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function HiddenFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty))) As MvcHtmlString

Type Parameters

TModel

The type of the model.

TProperty

The type of the property.

Parameters

htmlHelper
HtmlHelper<TModel>

The HTML helper instance that this method extends.

expression
Expression<Func<TModel,TProperty>>

An expression that identifies the object that contains the properties to render.

Returns

An input element whose type attribute is set to "hidden" for each property in the object that is represented by the expression.

Applies to

HiddenFor<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.

public static System.Web.Mvc.MvcHtmlString HiddenFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member HiddenFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function HiddenFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Type Parameters

TModel

The type of the model.

TProperty

The type of the property.

Parameters

htmlHelper
HtmlHelper<TModel>

The HTML helper instance that this method extends.

expression
Expression<Func<TModel,TProperty>>

An expression that identifies the object that contains the properties to render.

htmlAttributes
IDictionary<String,Object>

An object that contains the HTML attributes to set for the element.

Returns

An input element whose type attribute is set to "hidden" for each property in the object that is represented by the expression.

Applies to

HiddenFor<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.

public static System.Web.Mvc.MvcHtmlString HiddenFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, object htmlAttributes);
static member HiddenFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function HiddenFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As Object) As MvcHtmlString

Type Parameters

TModel

The type of the model.

TProperty

The type of the property.

Parameters

htmlHelper
HtmlHelper<TModel>

The HTML helper instance that this method extends.

expression
Expression<Func<TModel,TProperty>>

An expression that identifies the object that contains the properties to render.

htmlAttributes
Object

An object that contains the HTML attributes to set for the element.

Returns

An input element whose type attribute is set to "hidden" for each property in the object that is represented by the expression.

Applies to