Export (0) Print
Expand All
Expand Minimize

ListView::ItemPlaceholderID Property

Gets or sets the ID for the item placeholder in a ListView control.

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

public:
virtual property String^ ItemPlaceholderID {
	String^ get ();
	void set (String^ value);
}
<asp:ListView ItemPlaceholderID="String" />

Property Value

Type: System::String
The ID for the item placeholder in a ListView control. The default is "itemPlaceholder".

ExceptionCondition
ArgumentOutOfRangeException

The specified ID is nullptr or an empty string.

Use the ItemPlaceholderID property to specify an ID for the item placeholder. The item placeholder is the control that you add to the LayoutTemplate template (if you are not using groups) or to the GroupTemplate template (if you are using groups) to represent where the item will be rendered.

The following example shows how to use the ItemPlaceholderID property to specify an ID for the item placeholder of the ListView control.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft