ListView::InsertItemPosition Property
Gets or sets the location of the InsertItemTemplate template when it is rendered as part of the ListView control.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
public: virtual property InsertItemPosition InsertItemPosition { InsertItemPosition get (); void set (InsertItemPosition value); }
<asp:ListView InsertItemPosition="InsertItemPosition" />
Property Value
Type: System.Web.UI.WebControls::InsertItemPositionOne of the InsertItemPosition values. The default is InsertItemPosition::None, which indicates that the InsertItemTemplate content will not be rendered by the ListView control.
The following table lists the available item position values.
Row type | Description |
|---|---|
Renders the InsertItemTemplate template as the first item in the ListView control. | |
Renders the InsertItemTemplate template as the last item in the ListView control. | |
Does not render the InsertItemTemplate template. |
The following example shows how to configure a ListView control to display the InsertItemTemplate template. This code example is part of a larger example provided for the ItemInserted event.
Security Note: |
|---|
This example has a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview. |
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Security Note: