I want create menu item in asp.net MVC just as like as home and about us.I tried adding following code in "Site.Master" page.
views:
10answers:
1
A:
When you create a strongly typed view, the controller action rendering this view needs to pass a model:
public class HomeController: Controller
{
public ActionResult Patner()
{
var model = new SomeModelTheViewIsStronglyTypedTo();
return View(model);
}
}
And in ~/Views/Home/Partner.aspx
:
<%@ Page
Language="C#"
Inherits="System.Web.Mvc.ViewPage<Some.SomeModelTheViewIsStronglyTypedTo>"
%>
Darin Dimitrov
2010-10-20 12:23:59