Ok I have a menu system with a menu (Dynamicly Generated from a datavbase field) I want to include this menu system on several views - All of which use differant controllers and models.
<ul>
<li><a href="#">All</a></li>
<%
foreach (var curCat in Model.CategoryList)
{
%>
<li><a href="/messagecentre/category/<%=curCat.CategoryID.ToString() %>"><%= Html.Encode(curCat.Category1)%></a></li>
<%
}
%>
</ul>
Whast the best way to achieve this? Do i need to just pass the Categories model with every other model so that I can do the RenderPartial("Name",Model) synatx?