HtmlHelper.Hidden HtmlHelper.Hidden HtmlHelper.Hidden Method

Definition

Overloads

Hidden(String, Object, Object) Hidden(String, Object, Object) Hidden(String, Object, Object)

Returns an HTML hidden control that has the specified name, value, and custom attributes defined by an attribute object.

Hidden(String, Object, IDictionary<String,Object>) Hidden(String, Object, IDictionary<String,Object>) Hidden(String, Object, IDictionary<String,Object>)

Returns an HTML hidden control that has the specified name, value, and custom attributes defined by an attribute dictionary.

Hidden(String) Hidden(String) Hidden(String)

Returns an HTML hidden control that has the specified name.

Hidden(String, Object) Hidden(String, Object) Hidden(String, Object)

Returns an HTML hidden control that has the specified name and value.

Hidden(String, Object, Object) Hidden(String, Object, Object) Hidden(String, Object, Object)

Returns an HTML hidden control that has the specified name, value, and custom attributes defined by an attribute object.

public System.Web.IHtmlString Hidden (string name, object value, object htmlAttributes);
member this.Hidden : string * obj * obj -> System.Web.IHtmlString
Public Function Hidden (name As String, value As Object, htmlAttributes As Object) As IHtmlString
Parameters
name
String String String

The value to assign to the name attribute of the HTML control element.

value
Object Object Object

The value to assign to the value attribute of the element.

htmlAttributes
Object Object Object

An object that contains custom attributes for the element. The attribute names and values are retrieved through reflection by examining the properties of the object.

Returns

The HTML markup that represents the hidden control.

Exceptions
Sytem.ArgumentException Sytem.ArgumentException Sytem.ArgumentException

name is null or empty.

Hidden(String, Object, IDictionary<String,Object>) Hidden(String, Object, IDictionary<String,Object>) Hidden(String, Object, IDictionary<String,Object>)

Returns an HTML hidden control that has the specified name, value, and custom attributes defined by an attribute dictionary.

public System.Web.IHtmlString Hidden (string name, object value, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
member this.Hidden : string * obj * System.Collections.Generic.IDictionary<string, obj> -> System.Web.IHtmlString
Public Function Hidden (name As String, value As Object, htmlAttributes As IDictionary(Of String, Object)) As IHtmlString
Parameters
name
String String String

The value to assign to the name attribute of the HTML control element.

value
Object Object Object

The value to assign to the value attribute of the element.

htmlAttributes
IDictionary<String,Object>

The names and values of custom attributes for the element.

Returns

The HTML markup that represents the hidden control.

Exceptions
Sytem.ArgumentException Sytem.ArgumentException Sytem.ArgumentException

name is null or empty.

Hidden(String) Hidden(String) Hidden(String)

Returns an HTML hidden control that has the specified name.

public System.Web.IHtmlString Hidden (string name);
member this.Hidden : string -> System.Web.IHtmlString
Public Function Hidden (name As String) As IHtmlString
Parameters
name
String String String

The value to assign to the name attribute of the HTML control element.

Returns

The HTML markup that represents the hidden control.

Exceptions
Sytem.ArgumentException Sytem.ArgumentException Sytem.ArgumentException

name is null or empty.

Hidden(String, Object) Hidden(String, Object) Hidden(String, Object)

Returns an HTML hidden control that has the specified name and value.

public System.Web.IHtmlString Hidden (string name, object value);
member this.Hidden : string * obj -> System.Web.IHtmlString
Public Function Hidden (name As String, value As Object) As IHtmlString
Parameters
name
String String String

The value to assign to the name attribute of the HTML control element.

value
Object Object Object

The value to assign to the value attribute of the element.

Returns

The HTML markup that represents the hidden control.

Exceptions
Sytem.ArgumentException Sytem.ArgumentException Sytem.ArgumentException

name is null or empty.

Applies to