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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pankaj Kumar ChoudharyPosted Apr 2, 2015, 11:37 AM
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
Udaya kumarPosted Apr 2, 2015, 1:01 AM
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
Khargesh RajputPosted Apr 2, 2015, 12:49 AM
Eric SebastianPosted Apr 2, 2015, 12:40 AM
Khargesh RajputPosted Apr 2, 2015, 12:07 AM