Επεξεργασία

Κοινή χρήση μέσω


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.

public:
 property System::String ^ SortParameterName { System::String ^ get(); void set(System::String ^ value); };
public string SortParameterName { get; set; }
member this.SortParameterName : string with get, set
Public Property SortParameterName As String

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

See also