I am trying to build a dynamic menu with the help of the following code snippet. http://www.dynamicdrive.com/dynamicindex1/slashdotmenu.htmIts working fine for two to three levels or when I give the url of the page to be opened directly on .aspx page. But the problem arises when I want to create it dynamically with the code on .aspx.cs page, having n number of levels so that I can give the URL of the pages at different levels either through database or through XML