How to populate gridview based on another value clicked.
-
I have a navigation bar which shows the type of recipe. eg: healthy recipe, desserts, etc... I have a gridview on the same page. I want the data in the gridview to be populated as per the selection on navigation bar. I am using VS2010 and sqldatasource to bind with database. I google a lot but cant find any article based on populating gridview with context to navigation bar. Plz help.
-
I have a navigation bar which shows the type of recipe. eg: healthy recipe, desserts, etc... I have a gridview on the same page. I want the data in the gridview to be populated as per the selection on navigation bar. I am using VS2010 and sqldatasource to bind with database. I google a lot but cant find any article based on populating gridview with context to navigation bar. Plz help.
Try to Use Query String , in which you can pass any value through url, according to that value you an bind gridview using sql data source http://www.dotnetperls.com/querystring[^] follow this link you can learn how to use query string