ListView::ClientIDRowSuffix Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

public:
[TypeConverterAttribute((StringArrayConverter^::typeid))]
property array<String^>^ ClientIDRowSuffix {
	virtual array<String^>^ get();
	virtual void set(array<String^>^ value);
}

Property Value

Type: array<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.

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.

.NET Framework
Available since 4.0
Return to top
Show: