Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp.NET MVC - Difference between ViewPage and WebViewPage class

Tags:

asp.net-mvc

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

like image 512
Sri Avatar asked Sep 03 '10 18:09

Sri


1 Answers

A ViewPage is specific to the Web Forms View Engine, and inherits from System.Web.UI.Page. It is used as the base class when the engine compiles .aspx files.

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

like image 56
Emil Lerch Avatar answered Oct 13 '22 16:10

Emil Lerch