I am a newbie to a MVC world from web form world ( 3 days old :) ) . I created a MVC website which contains a dynamically loaded menu from the DB and load the associated page based on what is clicked.. So far I load menu view on the separate page whose Index action return a View(list of menu items) and the click of each submenu items calls the associated page.. I created a new layout page which loads the menu items ( copying the code from menuView) and called the page in the main layout something like


The page loads correctly but on the click of the menu items i get the following

The model item passed into the dictionary is of type 'System.Collections.Generic.List

Related posts

Recent Viewed