ASP.Net C# Search Box
I Need Help With ASP.Net C# Search Box People, Anyone ???
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 1, 2015, 8:07 PM EDT
Eric Sebastian27 reputationPosted Apr 1, 2015, 8:40 PM EDT
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 1, 2015, 8:49 PM EDT
Udaya kumarRank #3,446 · 420 reputationPosted Apr 1, 2015, 9:01 PM EDT
select name,address,mobile_no from your_table where name like '%textbox1.text%'
Reference:
http://www.c-sharpcorner.com/Blogs/46617/get-the-values-from-the-any-combination-of-a-record-from-tab.aspx
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Apr 2, 2015, 7:37 AM EDT
1. is that you can search data in gridview for this you can refers following sites
http://www.aspdotnet-suresh.com/2011/12/search-records-in-gridview-and.html
http://www.aspsnippets.com/Articles/Search-records-in-GridView-and-highlight-results-in-ASPNet-using-C-and-VBNet.aspx
and second is that you can search data from table which you are binding to gridview using "Select Query";
as
DataRow[] dr;
dr = Table.Select("where id='" + TextBox1.Text + "'");
now you can retrieve data from datarow dr
You can select any method as your requirement and choice