Skip Navigation LinksHome > Categories > Code from a Category

How to create Search in ASP.NET



User Name: codelecturer
Name: Mike Chauhan
Contact Me: www.datawebcoder.com/ContactUs.aspx
Home Page: www.datawebcoder.com
6 years of total IT experience including programming, application development, System Maintenance . 3 years of Experienced and expertise in .Net Framework VB, Visual Basic.Net, ASP.Net 2.0, 3.5 and AD... [More]
Viewed Times: 131
Add Date: 11/19/2011
The seach is important in the web site. When you are create a new website you have to implement in the search features as well. So in this article I will explain how to search record from database using gridview.
Create page named search.aspx . Palce a textbox.linkbutton,label,gridview at this page. You can see it in the HTML code.here I’m using templatefields for bimd the gridview.

HTML code for search.aspx page


C# code for search.aspx page


Here is the Database Script

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.