System.Web.UI.WebControls.ObjectDataSource.SortParameterName Property

Gets or sets the name of the business object that the ObjectDataSource.SelectMethod parameter used to specify a sort expression for data source sorting support.

Syntax

[System.ComponentModel.DefaultValue("")]
public string SortParameterName { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ObjectDataSource.SortParameterName property is used to support data source sorting. When a System.Web.UI.DataSourceSelectArguments.SortExpression property is set on the System.Web.UI.DataSourceSelectArguments object and passed to the ObjectDataSource.Select method, the ObjectDataSource.SortParameterName value identifies the parameter name of the ObjectDataSource.SelectMethod business object method according to which the data is sorted.

If the System.Web.UI.WebControls.ObjectDataSource is associated with a data-bound control, the values that are passed to this parameter take the form of comma-separated field values followed by "ASC" or "DESC". For example, the value for an ascending sort on Name would be "Name ASC".

The ObjectDataSource.SortParameterName property delegates to the ObjectDataSourceView.SortParameterName property of the System.Web.UI.WebControls.ObjectDataSourceView object that is associated with the System.Web.UI.WebControls.ObjectDataSource control.

Requirements

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