Skip to main content
Tab

ASPxHiddenField.Set(String, Object) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public void Set(
    string propertyName,
    object propertyValue
)

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 Object

An object that is the property value.

Remarks

The Set method can be used to add a new value to the control’s collection of property name/value pairs. Alternatively, the ASPxHiddenField.Add method or the ASPxHiddenField.Item property can be used for the same purpose. To delete all values from the control’s collection of property name/value pairs, use the ASPxHiddenField.Clear method. An individual property name/value pair can be removed from the collection by using the ASPxHiddenField.Remove method.

Use the ASPxHiddenField.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 client side, by using the following methods: ASPxClientHiddenField.Add, ASPxClientHiddenField.Set, ASPxClientHiddenField.Get, ASPxClientHiddenField.Clear, ASPxClientHiddenField.Remove.

See Also