- Posted:
21 May 2020
- Author: Mudassar Khan
-
- Technology:
C#
- Language:
English
-
In this video tutorial, Mudassar Khan has explained with an example and attached sample code, how to filter GridView records using TextBox in ASP.Net. To accomplish the task I have made use of SqlDataSource with FilterExpression along with FilterParameters to filter records and bind the ASP.Net GridView control.
The TextBox will be specified as ControlParameter in the SqlDataSource FilterParameters, so that when text or value is entered in the TextBox and the Search Button is clicked, it will filter the GridView Records based on Starts with LIKE Search.