Generate Menus Using XML in


In this article, I am going to show how to easily generate menus using XML from the data source in C#. By using this we can define the hierarchy separately in XML and use the same in the menus. Below is the real time code I have used in my project and I have attached the same in the attachment section.

Aspx page Code


Note JFY

You can place the same in the .master page, if you have multiple pages in the project and want the menu to appear in all the pages.

XML Code





I hope the above information was useful. Kindly let me know your valuable feedback or thoughts.

108 total views, 1 views today

Leave a Reply

Your email address will not be published. Required fields are marked *