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!
Asked
Active
Viewed 211 times
2
-
thx for the edit but i meant Gus (Gurus) not Guys. – Ahmed Jun 24 '09 at 08:36
-
Dupe of: http://stackoverflow.com/questions/523644/what-templating-engines-are-available-for-asp-net-mvc-framework – Spoike Jun 24 '09 at 12:24
2 Answers
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