Last post Jun 25, 2018 05:57 AM by Brando ZWZ
Jun 24, 2018 01:54 PM|uid649805|LINK
I have in an sql database a set of data which are used to create dynamically a navigation menu on the left hand side of a web page.
i have menu items, sub menu items.. I do not know in advance the level of sub menu I will have
What I am trying to see is how can i collect the datasource for building my nav menu and bind it to my web paged in order to represent that navigation menu.
Do you have any sample on building nav menu from a collection of data ?
thanks for helping a dummies in web
Jun 25, 2018 05:57 AM|Brando ZWZ|LINK
According to your description, I suggest you could consider using asp.net webform treeview control.
By using the treeview control, we could set the data into treeview nodes and each tree view nodes could have the child nodes.
More details about how to use it with database in asp.net, you could refer to below article.
Besides, if the treeview control doesn't match your requirement, I suggest you could post more details information about your requirement.
For exmaple, you could caputre a picture with the treeview nav menu for us to understand your requirement clearly.