The text of this article is not in this database — only its details are. Read it on the old site: Filter GridView With TextBox Using Control Parameter in ASP.NET 4.5
8 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Ching KuePosted Sep 23, 2016, 2:46 PM
How would you allow the textbox to query with an apostrophe such as O'neil? I'm getting an error message. This is the message when a search contains an apostrophe: The expression contains an invalid string constant: '.
kalu singh raoPosted Jul 8, 2016, 2:51 AM
Nice...
Benito SuarezPosted Jul 22, 2015, 3:14 PM
And from the button and the data would be passed. Apologize if the translation is not correct, google translate.
Jaipal ReddyPosted Jul 1, 2015, 12:16 AM
Nice
gibson siagianPosted Jul 1, 2015, 12:03 AM
thank you, it's very helpful
John BergPosted Mar 18, 2015, 9:53 PM
Very helpful and useful for me, thank you!If nothing is entered in the text box then no results show up in my Grid View. I updated this by adding the following to the ControlParameter: ConvertEmptyStringToNull="false"
Deepika DeepuPosted Nov 28, 2014, 2:27 AM
Can you please explain how to search data based on First name or lastname od middlename
Sandeep SharmaPosted Apr 16, 2014, 11:09 AM
nice :-)