<commit_before>---
title: OnDataSourceSelect
page_title: OnDataSourceSelect | RadSearchBox for ASP.NET AJAX Documentation
description: OnDataSourceSelect
slug: searchbox/server-side-programming/events/ondatasourceselect
tags: ondatasourceselect
published: True
position: 3
---

# OnDataSourceSelect


The **OnDataSourceSelect** event is raised just before the result items are requested from theunderlying DataSource, providing the ability to modify the parameters of the request. For instance with SqlDataSourcethe user can modify the SelectCommand and implement the filtering directly on the SQL Server.

The event handler receives two parameters:

1. The instance of the SearchBox firing the event

1. An event arguments parameter that contains the following properties:<commit_msg>Fix a typo<commit_after>---
title: OnDataSourceSelect
page_title: OnDataSourceSelect | RadSearchBox for ASP.NET AJAX Documentation
description: OnDataSourceSelect
slug: searchbox/server-side-programming/events/ondatasourceselect
tags: ondatasourceselect
published: True
position: 3
---

# OnDataSourceSelect


The **OnDataSourceSelect** event is raised just before the result items are requested from the underlying DataSource, providing the ability to modify the parameters of the request. For instance with SqlDataSourcethe user can modify the SelectCommand and implement the filtering directly on the SQL Server.

The event handler receives two parameters:

1. The instance of the SearchBox firing the event

1. An event arguments parameter that contains the following properties:
{'fraction_non_alphanumeric': 0.044642857142857144, 'fraction_numerical': 0.003826530612244898, 'mean_word_length': 5.821739130434783, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1566640', 'n_tokens_mistral': 377, 'n_tokens_neox': 362, 'n_words': 180}