This documentation is archived and is not being maintained.

LinqDataSourceSelectEventArgs::SelectParameters Property

Gets the collection of parameters that is used to create the Select clause.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
property IDictionary<String^, Object^>^ SelectParameters {
	IDictionary<String^, Object^>^ get ();
}

Property Value

Type: System.Collections.Generic::IDictionary<String, Object>
An object that contains the parameters for the Select clause.

You use the SelectParameters property to access parameters for the Select clause in a handler for the Selecting event. You can modify the Select clause by adding or removing parameters from this collection. By default, the SelectParameters property of the LinqDataSourceSelectEventArgs object contains any parameters that you added to the SelectParameters of the LinqDataSource control.

The following example shows how to add a parameter to the SelectParameters collection. The added parameter is used to calculate an adjusted price for a product based on whether products are on discounted. The first part of the example shows the event handler for the Selecting event.

No code example is currently available or this language may not be supported.

The second part of the example shows the markup that defines the Select clause.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: