To do a search in a database, all you have to do is create a user control like Datalist, DataGrid, or Repeater and bind it to the datasource. If you want to search for a keyword, create a textbox that posts to the server. When a user enters in the information and submits, it will post to the server, and the your code will tell the SQL command what to search for. Then you need to bind that datasource to your user control. On the front-end of your page, you will need to design your search results and how they will display.

so send me a code to do this by asp.net or c# ( to search the record from database how can i write the code by using c# or asp.net?) Thank you

Looks like you already have instructions right there. So start coding and post it up when you have problems or specific questions.
"Send me a code to do my homework" is not a specific question.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.