ListView.ClientIDRowSuffix Property (System.Web.UI.WebControls)

Switch View :
ScriptFree
.NET Framework Class Library
ListView.ClientIDRowSuffix Property

Gets or sets the name of the data field whose value is used to uniquely identify each data row of a ListView control when the ClientIDMode property is set to Predictable.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)
Syntax

Visual Basic
<TypeConverterAttribute(GetType(StringArrayConverter))> _
Public Overridable Property ClientIDRowSuffix As String()
C#
[TypeConverterAttribute(typeof(StringArrayConverter))]
public virtual string[] ClientIDRowSuffix { get; set; }
Visual C++
[TypeConverterAttribute(typeof(StringArrayConverter))]
public:
virtual property array<String^>^ ClientIDRowSuffix {
	array<String^>^ get ();
	void set (array<String^>^ value);
}
F#
[<TypeConverterAttribute(typeof(StringArrayConverter))>]
abstract ClientIDRowSuffix : string[] with get, set
[<TypeConverterAttribute(typeof(StringArrayConverter))>]
override ClientIDRowSuffix : string[] with get, set
ASP.NET
<asp:ListView ClientIDRowSuffix="value" />

Property Value

Type: System.String[]
The name of the data field whose value is used to uniquely identify each instance of a ListView control when ASP.NET generates the ClientID value.

Implements

IDataKeysControl.ClientIDRowSuffix
Remarks

To prevent naming conflicts when multiple instances of a control are rendered in multiple rows of a ListView control, ASP.NET generates a unique ClientID value for each instance of the control. You specify how the ClientID value is generated by setting the ClientIDMode property. If you set the ClientIDMode property to Predictable, ASP.NET generates the ClientID by appending a suffix that is derived from the data field specified in ClientIDRowSuffix. If ClientIDRowSuffix is not set, the suffix is a sequential number.

Version Information

.NET Framework

Supported in: 4
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also

Reference

Other Resources