Skip to main content
Tab

ASPxHiddenField.Get(String) Method

Returns the value with the specified property name.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public object Get(
    string propertyName
)

Parameters

Name Type Description
propertyName String

A string value that specifies the property name.

Returns

Type Description
Object

An object that represents the value of the specified property.

Remarks

The Get property is used to obtain the value with the specified property name from the control’s value collection. Alternatively, the value can be accessed by using the ASPxHiddenField.Item notation.

To add a new value to the control’s collection of property name/value pairs, the ASPxHiddenField.Set method can be used. 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.

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.

Example

protected void ASPxButton1_Click(object sender, EventArgs e) {
    ASPxButton btn = sender as ASPxButton;
    if(ASPxHiddenField1.Get("property_name")) {
        // custom code
    }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Get(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also