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!

2
  • thx for the edit but i meant Gus (Gurus) not Guys. Commented Jun 24, 2009 at 8:36
  • Dupe of: stackoverflow.com/questions/523644/… Commented Jun 24, 2009 at 12:24

2 Answers 2

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".

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the details Marc. Will get my copy of ASP.NET MVC In Action ASAp (seriously considering it). Accepted!
2

you can use other ViewEngines

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.