Skip to main content
Tab

ASPxHiddenField.Item[String] Property

Gets or sets the value associated with the specified property name.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public object this[string propertyName] { get; set; }

Parameters

Name Type Description
propertyName String

A String value that specifies the name of the property whose value to get or set. The property name can contain letters, digits, underline characters, and dollar signs.

Property Value

Type Description
Object

The value associated with the specified property name. If the specified property name is not found within the control’s dictionary, an exception occurs.

Remarks

The Item property provides access to a name/value pair specified by the property name. Setting this property using a property name that doesn’t already exist within the control’s dictionary creates a new individual item object within the dictionary.

The ASPxHiddenField.Contains method can be used to determine whether the value with the specified property name is contained within the ASPxHiddenField‘s value collection.

A new item can be added to the control’s value collection via the ASPxHiddenField.Add or ASPxHiddenField.Set method. Individual values can be removed from the collection by using the ASPxHiddenField.Remove method. To clear the whole collection, use the ASPxHiddenField.Clear method. The ASPxHiddenField.Get method is useful to obtain the specified value from the collection.

Additionally, the same functionality is available on the client side - via the ASPxClientHiddenField.Add, ASPxClientHiddenField.Clear, ASPxClientHiddenField.Get and ASPxClientHiddenField.Remove methods.

Implements

See Also