Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
When you set the property to true, the LinqDataSource control dynamically creates an Order By clause that is based on the values in the OrderByParameters collection. The LinqDataSource control sorts the data by the first parameter and then additionally sorts the data for each additional parameter. Parameters that contain a null reference (Nothing in Visual Basic) or an empty value are not included in the Order By clause.
You do not set the OrderBy property when the is set to true, because the parser dynamically creates the Order By clause. The LinqDataSource control throws an exception if the is set to true and the OrderBy property is assigned values.
The following example shows a LinqDataSource control with the set to true. A parameter is included in the OrderByParameters collection that orders the data based on the property name that a user selects from a DropDownList control.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.