Hello Vignesh, you have already written code to retrieve data from database.
select * from hyd_resturentdetails where resturentname = @resturentname
I assume
hyd_resturentdetails
table has multiple columns. So, the above SQL is going to return a row with all the columns in this table. Hence, GridView would be an ideal choice to display all the details on page.
If you want to bind the retrieved data to a GridView control, then use the following code:
GridView1.DataSource = bind1("resturant_name_to_search");
GridView1.DataBind();
Let me know if you are looking for something else.
- DD