How to write your own ASP.NET MVC viewer?

I know that ASP.NET MVC will allow me to swap various viewers created by other people, but I wonder how I can create my own viewer?

Additional Information: We have our own CMS-based web forms, and the main selling point in MVC is that it gives us cleaner HTML (which our designers will like). However, we have a desire to create our own implementation of the representation in the domain.

+5
source share
3 answers

OK, I did some google-fu and found these posts:

Adding skin support in an ASP.NET MVC application

Partial rendering and viewing in ASP.NET MVC

, , , - , - ASP.NET MVC!

EDIT: XML- VB.NET .

+5

, :

  • , VirtualPathProviderViewEngine ( WebFormsViewEngine ).
  • , IView. - .
  • Global.asax.cs:

    ViewEngines.Engines.Add( MyEngine());

+3

http://mvccontrib.org/ ViewEngines. 4 (, , , - )

+2

All Articles