ListView::InsertNewItem Method (Boolean)
Inserts the current record in the data source.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Use the ListView control, such as from a different control on the page.method to programmatically insert an item in the data source. This method is typically used to insert an item from outside the
To use the InsertItemTemplate template in the ListView control. You must also set the InsertItemPosition property to a value different from InsertItemPosition::None. To specify whether page validation is performed before the insert operation, use the causesValidation parameter.method, you must define an
The following example shows how to use the ListView control into the data source.method to programmatically insert the contents of the insert item of a
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