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: property InsertItemPosition InsertItemPosition { virtual InsertItemPosition get(); virtual void set(InsertItemPosition value); }
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. |
Available since 3.5
