I am very new to MVC and I am updating a web form application to mvc. I have a shared layout (masterpage in webforms), I would like to set the meta and title information per vie
In your method of controller.
ViewData["Title"] = "this is page one title";
in you view, have this. @ViewData["Title"])
@ViewData["Title"])
if title is html, it should be @html.raw(ViewData["TopMessage"])
@html.raw(ViewData["TopMessage"])
Razor engine is better for mvc, so I recommend you try razor when you create a new project. hope it help you.