I am creating a form with three fields eno,name,salary and search button. I may or may not enter the values to the text fields and then press the search button. Here based on the values the query will generate and execute now the 10 records are display if may available otherwise it will display getting records from the database. Please how to do above requirement. Please provide the code.