Reputation: 6270
What is the difference between MVC 3 View Master Page (ASPX) and Master Page. I am working on asp.net MVC 3 project which mainly uses razor view engine but to integrate SSRS reports I need to add Aspx page. I want my reports to have same layout as cshtml pages in my project. Which master page should I add to my project and why?
Upvotes: 1
Views: 1271
Reputation: 1038930
It's the base class:
System.Web.UI.MasterPage
class.System.Web.Mvc.ViewMasterPage
class which in turn derives from System.Web.UI.MasterPage
but it adds additional properties such as Model
, Html
, Ajax
, Url
, TempData
, ViewBag
, ... so that you have access to MVC specific artifacts.Inside an ASP.NET MVC application you should use the System.Web.Mvc.ViewMasterPage
class if you need to access all those MVC specific notions.
Upvotes: 1
Reputation: 4915
Master Page is introduced in ASP.NET 2.0 and View Master Page is used in an ASP.NET MVC application. View Master Page have a different base class and it can access to the helpers and can be strongly typed to a model (in MVC).
Upvotes: 0