System.Web.UI.WebControls Namespace SqlDataSource Class
.NET Framework version 2.0
Sets or retrieves the name of a stored procedure parameter that is used to sort retrieved data when data retrieval is performed using a stored procedure.
Inline |
<asp:SqlDataSource sortparametername = strName ... > |
Script |
SqlDataSource.SortParameterName [ = strName ] |
strName |
The name of a stored procedure parameter used to sort retrieved data when data retrieval is performed using a stored procedure. |
The property is read/write with no default value.
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.