views:

102

answers:

1

For general ASP.NET WebForms applications, the web page derives from Page class which implements IHttpHandler that servers actual web request.

In ASP.NET MVC the webpage base class is System.Web.Mvc.ViewPage that also derives from Page class which in turn implements IHttpHandler.

But in the ASP.NET MVC Razor, the "cshtml" file derives from System.Web.Mvc.WebViewPage which actually does not implement IHttpHandler.

According to IIS architecture, in order to process a request, a class must implement IHttpHandler but this not the case with Razor view engine. How could it be possible?

+1  A: 

Look at link text this cheat sheet.

ASP.NET MVC not use WebForms IHttpHandler. It is using MvcHandler from MvcRouteHandler.

ViewPage class invoke in ViewEngine. MVC model2 architecture style is not Page Controller style.

takepara