Data Types Supported by the ASPxHiddenField
- 2 minutes to read
The ASPxHiddenField component supports storing values of non string types.
List of Supported Types
All supported types can be divided into the following three categories.
Elements (atomic values)
System.String
System.Guid
System.Byte
System.Int16
System.Int32
System.Int64
System.Double
System.Boolean
System.Single
System.Decimal
System.Char
System.DateTime
System.Text.RegularExpressions.Regex
System.DBNull
Nullable<T> - All analogies are supported except for String, Regex and DBNull (they can’t be Nullable because they are not structures).
Lists
Dictionaries
All string-key dictionaries that implement the IDictionary are supported.
Note
The ASPxHiddenField is capable of storing values that are containers (lists, dictionaries) of the types described above. Value hierarchies of any depth are supported within the ASPxHiddenField. So, the ASPxHiddenField can store almost any container, which for example, can be a specifically designed business object with a set of {property name} - {property value} pairs.
Note
The ASPxHiddenField cannot be rendered if it contains a key-value pair whose key is an empty string. The described pair should not be added to the ASPxHiddenField’s dictionary and any nested dictionaries if they exist.
List of Types whose Information Is Not Passed To the Client
Using the following types allows you to avoid type-description information from being passed by the ASPxHiddenField component to the client side.
System.Collections.Generic.Dictionary<string, object>
System.Object[]