2

As far as I know, ASP.NET MVC leverages a lot of the features of ASP.NET Web Forms, one of these services is how to get the Html response from the template .aspx file (the view). Can asp.net mvc leverages any other platform to generate html over template files (something like PHP for example)?

EDIT: There is NO use case for this, just curiosity!

Spoike
  • 119,724
  • 44
  • 140
  • 158
Ahmed
  • 11,063
  • 16
  • 55
  • 67

2 Answers2

6

Yes, it can! The aspx model is just one of the view template mechanisms. There are others - you can even write your own. The key here is IViewEngine, with WebFormViewEngine being the aspx/ascx provider. ASP.NET MVC In Action covers some of this in chapter 6 "Customizing & Extending the ASP.NET MVC Framework".

Marc Gravell
  • 1,026,079
  • 266
  • 2,566
  • 2,900
  • Thanks for the details Marc. Will get my copy of ASP.NET MVC In Action ASAp (seriously considering it). Accepted! – Ahmed Jun 29 '09 at 13:06
2

you can use other ViewEngines

Rony
  • 9,331
  • 2
  • 22
  • 22