1- Create and configure your TreeView Control 2- Drag a SqlDataSource control to the site (SqlDataSource1, for our example) 3- Configure the SqlDataSource to pull the columns from you database, in the configuration, select WHERE, chose the column you want to use as filter, the operator (probably '='), and for source use control, in the Parameters Property window, choose the treeview control. 4 - Create a GridView, DetailView, Dataview (whatever fits you) and bind it to your SqlDataSource. 5- Now the content of your Gridview will change according to your Treeview selection.
Hope that helps!
|