Populating the Menu Control using XML
-
:confused: Hey all, I'm trying to populate the menu control with a custom XML file. The XML is a basic Menu Style layout (hiaracy wise), with 3 parameters on each MenuItem entry: Label, URL, and Permission. Where Label is what is to be displayed on the menu, URL is the link, and Permission is the permissons level. The idea is to read in the XML file, add a new menu item, and then add it to the menu. Problem is.. nothing displays. So I know I'm doing something wrong. What I'm looking for is Sample code that would take this XML snippet. Which I can't post.. So I hope you get the idea here:
Menu
MenuItem Label="Home" URL=""
MenuItem Label="Customers" URL=""
MenuItem Label="Enter New" URL="CustEntry.aspx" Permission="EntCust
MenuItem Label="Review" URL="Status.aspx" Permission="StatCust"
MenuItem Label="Registration" URL="Reg.aspx" Permission="RegSubt"
MenuItem
MenuMenu Layout would be: Home | Customers |
Enter New
Review
Registrationand some how dump it into the ASP.NET 2.0 Menu control... :confused: or even just sample code of HOW to dump NON siteMap XML into the Menu control would be a God send. -== The PogoWolf ==- http://www.pogowolf.com GamersVue: http://GamersVue.blogger.com -- modified at 15:27 Thursday 18th May, 2006
-
:confused: Hey all, I'm trying to populate the menu control with a custom XML file. The XML is a basic Menu Style layout (hiaracy wise), with 3 parameters on each MenuItem entry: Label, URL, and Permission. Where Label is what is to be displayed on the menu, URL is the link, and Permission is the permissons level. The idea is to read in the XML file, add a new menu item, and then add it to the menu. Problem is.. nothing displays. So I know I'm doing something wrong. What I'm looking for is Sample code that would take this XML snippet. Which I can't post.. So I hope you get the idea here:
Menu
MenuItem Label="Home" URL=""
MenuItem Label="Customers" URL=""
MenuItem Label="Enter New" URL="CustEntry.aspx" Permission="EntCust
MenuItem Label="Review" URL="Status.aspx" Permission="StatCust"
MenuItem Label="Registration" URL="Reg.aspx" Permission="RegSubt"
MenuItem
MenuMenu Layout would be: Home | Customers |
Enter New
Review
Registrationand some how dump it into the ASP.NET 2.0 Menu control... :confused: or even just sample code of HOW to dump NON siteMap XML into the Menu control would be a God send. -== The PogoWolf ==- http://www.pogowolf.com GamersVue: http://GamersVue.blogger.com -- modified at 15:27 Thursday 18th May, 2006