Skip to main content
A newer version of this page is available. .

ASPxClientHiddenField.Add(propertyName, propertyValue) Method

Adds a new value to the control’s collection of property name/value pairs, on the client side.

Declaration

Add(
    propertyName: string,
    propertyValue: any
): void

Parameters

Name Type Description
propertyName string

A string value that specifies the property name. It can contain letters, digits, underline characters, and dollar signs. It cannot begin with a digit character.

propertyValue any

An object that represents the value of the specified property.

Remarks

The Add method can be used on the client side to add a new value to the control’s collection of property name/value pairs. Alternatively, the ASPxClientHiddenField.Set method can be used for the same purpose. To delete all values from the control’s collection of property name/value pairs, use the ASPxClientHiddenField.Clear method. An individual property name/value pair can be removed from the collection by using the ASPxClientHiddenField.Remove method. Use the ASPxClientHiddenField.Get method to obtain the value with specified property name.

Items from the control’s collection of property name/value pairs can also be manipulated on the server side by using the following methods: ASPxHiddenField.Add, ASPxHiddenField.Set, ASPxHiddenField.Get, ASPxHiddenField.Item, ASPxHiddenField.Clear, ASPxHiddenField.Remove.

See Also