Retrieve Record from DB to Gridview by searching name or ID

Jul 1 2015 3:05 AM
Dear Sir/Madam,
                           I want to Bind the particular record from Database Table to the GridView.This happens when I enter Id or Name into the Textbox and Clicking the Image Button.
                              Actually I am getting this,but without entering any Id/Name in textbox I am getting all records of particular Table when I click ImageButton.
                           How to restrict that ImageButton in order to get records only when I select from TextBox.
 
 

Answers (1)