SqlDataSourceView.SortParameterName Property

Definition

Gets or sets the name of a stored procedure parameter that is used to sort retrieved data when data retrieval is performed using a stored procedure.

C#
public string SortParameterName { get; set; }

Property Value

The name of a stored procedure parameter used to sort retrieved data when data retrieval is performed using a stored procedure.

Remarks

The SortParameterName property is evaluated only when the SQL command that is contained by the SelectCommand property is the name of a stored procedure. In this case, if the SortParameterName property is set, it contains the name of a parameter that is used to sort the results of the stored procedure.

If the ParameterPrefix property is set, it is prepended to the SortParameterName property.

The value of the SortParameterName property is stored in view state.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also