SqlDataSource.Filtering Event
.NET Framework 3.0
Occurs before a filter operation.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public: event SqlDataSourceFilteringEventHandler^ Filtering { void add (SqlDataSourceFilteringEventHandler^ value); void remove (SqlDataSourceFilteringEventHandler^ value); }
/** @event */ public void add_Filtering (SqlDataSourceFilteringEventHandler value) /** @event */ public void remove_Filtering (SqlDataSourceFilteringEventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.
Handle the Filtering event to perform validation operations on filter parameter values before the SqlDataSource control performs a filter operation. You can cancel the Select method by setting the Cancel property of the SqlDataSourceFilteringEventArgs object to true. The event is raised only if the FilterExpression property is set.
The SqlDataSource.Filtering event delegates to the SqlDataSourceView.Filtering event of the SqlDataSourceView object that is associated with the SqlDataSource control.
For more information about handling events, see Consuming Events.
Community Additions
ADD
Show: