System.Web.UI.WebControls.ObjectDataSource.UpdateParameters Property

Gets the parameters collection that contains the parameters that are used by the method that is specified by the ObjectDataSource.UpdateMethod property.

Syntax

[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
[System.ComponentModel.DefaultValue(null)]
[System.ComponentModel.Editor("System.Web.UI.Design.WebControls.ParameterCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.MergableProperty(false)]
public ParameterCollection UpdateParameters { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The names and types of the parameters that are contained in the ObjectDataSource.UpdateParameters collection must match the names and types of the parameters in the ObjectDataSource.UpdateMethod method signature. The parameter names are affected by the ObjectDataSource.OldValuesParameterFormatString property and are case-sensitive. The parameters in the collection depend on the data in the data-bound control, the parameters that are specified declaratively, and the parameters that are added programmatically. For more information, see the "Parameter Merging" section in ObjectDataSource.Update and Using Parameters with the ObjectDataSource Control.

The ObjectDataSource.UpdateParameters property retrieves the ObjectDataSourceView.UpdateParameters property that is contained by the System.Web.UI.WebControls.ObjectDataSourceView object that is associated with the System.Web.UI.WebControls.ObjectDataSource control.

For more information about parameter merging, object lifetime, and method resolution, see ObjectDataSource.UpdateMethod.

Note:

You should validate any parameter value that you receive from the client. The runtime simply substitutes the parameter value into the ObjectDataSource.UpdateMethod property.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0