ListControl.DataValueField Property
Assembly: System.Web (in system.web.dll)
[ThemeableAttribute(false)] public: virtual property String^ DataValueField { String^ get (); void set (String^ value); }
/** @property */ public String get_DataValueField () /** @property */ public void set_DataValueField (String value)
public function get DataValueField () : String public function set DataValueField (value : String)
Property Value
A System.String that specifies the field of the data source that provides the value of each list item. The default is String.Empty.Use this property to specify the field that contains the value of each item in a list control.
The value of this property is stored in view state.
This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and ASP.NET Themes and Skins Overview.
The following example demonstrates how to specify the DataValueField for the RadioButtonList control. The DataValueField is the value for the each item in the RadioButtonList.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.