DataKey.Value Property
.NET Framework 3.0
Gets the value of the key field at index 0 in the DataKey object.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
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, a null reference (Nothing in Visual Basic) is returned. |
Community Additions
ADD
Show:
Note: