Gets the parameters collection that contains the parameters that are used by the SqlDataSource.DeleteCommand property from the System.Web.UI.WebControls.SqlDataSourceView object that is associated with the System.Web.UI.WebControls.SqlDataSource control.
Documentation for this section has not yet been entered.
If the SqlDataSource.DeleteCommand property contains a parameterized SQL query, the SqlDataSource.DeleteParameters collection contains any System.Web.UI.WebControls.Parameter objects that correspond to the parameter placeholders in the SQL string.
Make sure that no System.Web.UI.WebControls.BoundField controls in the data-bound control that you bind to the System.Web.UI.WebControls.SqlDataSource control have names that match any parameter names in the SqlDataSource.DeleteParameters collection. Parameters that have the same name as bound fields are excluded from the SQL command, and a "parameter was not supplied" error might result.
If the SqlDataSource.ConflictDetection property is set to the System.Web.UI.ConflictOptions.CompareAllValues value, the parameters are created for both the old and new values of the data. The parameters for the old values are named according to the SqlDataSource.OldValuesParameterFormatString property.
Depending on the ADO.NET provider, the order of the parameters in the SqlDataSource.DeleteParameters collection might be important. The System.Data.OleDb and System.Data.Odbc providers associate the parameters in the collection according to the order in which the parameters appear in the parameterized SQL query. The System.Data.SqlClient provider, which is the default ADO.NET provider for the System.Web.UI.WebControls.SqlDataSource control, associates the parameters in the collection by matching the name of the parameter with the placeholder in the SQL query. For more information about parameterized SQL queries and commands, see Using the SqlDataSource and AccessDataSource Controls with Parameters.
The SqlDataSource.DeleteParameters property retrieves the SqlDataSourceView.DeleteParameters property that is contained by the System.Web.UI.WebControls.SqlDataSourceView object that is associated with the System.Web.UI.WebControls.SqlDataSource control.
Values are inserted into parameters without validation, which is a potential security threat. Use the SqlDataSource.Deleting event to validate parameter values before executing the query. For more information, see Script Exploits Overview.