I have created a MvcSite Map which contains Menu Itmes this Site Map is displayed on the shared layout page using @Html.MvcSiteMap.Menu(false,true,true)
i have a custom code in MenuHelpModel.cshtml file now i want to create some menuitmes when a user login i am getting the number of organization the user belongs which is dynamic "a user can be a member of n number of organization"
is there any way I can write the dynamic menu in the MenuHelpModel or do I need to write the Code in layout and use Jquery to populate the Menu?
Is there any way to use ViewBag inside jQuery?