DataKey::Value Property
.NET Framework (current version)
Gets the value of the key field at index 0 in the DataKey object.
Assembly: System.Web (in System.Web.dll)
Instead of using the Item or the Values property to retrieve a key field value from a DataKey object, you can use the Value property as a shortcut to determine the value of the key field at index 0 in the DataKey object. This property is commonly used to determine the key field value of a record when the record has only one key field.
Note |
|---|
If the DataKey object does not contain any key fields, null is returned. |
.NET Framework
Available since 2.0
Available since 2.0
Show:
