Asp.NET MVC - difference between ViewPage and WebViewPage class

What is the difference between ViewPage and WebViewPage in ASP.NET MVC?

+7
asp.net-mvc
source share
1 answer

A ViewPage is specific to the web form viewer and inherits from System.Web.UI.Page. It is used as a base class when the engine compiles .aspx files.

WebViewPage is an abstract class used (by default) as the base class for Razor-based Views when compiling .cshtml or .vbhtml files. This default value can be changed in the Views / Web.config file.

+11
source share

All Articles