A newer version of this page is available. Switch to the current version.

ASPxHiddenField.Clear() Method

Clears the ASPxHiddenField's value collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public void Clear()
Public Sub Clear


The Clear method removes all values from the control's value collection of property name/value pairs. To remove an individual value pair, use the ASPxHiddenField.Remove method.

A new value can be added to the control's value collection by using the ASPxHiddenField.Add and ASPxHiddenField.Set methods. To obtain the value from the collection with the specific property name, use the ASPxHiddenField.Get method or the ASPxHiddenField.Item property.

Values 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