Filter GridView with TextBox using FilterExpression in SqlDataSource in ASP.Net


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.



Download FREE API for Word, Excel and PDF in ASP.Net
 
ArticleId:519

© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.